EthereumKit is a Swift framework that enables you to create Ethereum wallet and use it in your app.
// BIP39: Generate seed and mnemonic sentence.
let mnemonic = Mnemonic.create()
let seed = Mnemonic.createSeed(mnemonic: mnemonic)
// BIP32: Key derivation and address generation
let wallet = try! Wallet(seed: seed, network: .main)
// Send some ether
let rawTransaction = RawTransaction(
ether: try! Converter.toWei(ether: "0.00001"),
to: address,
gasPrice: Converter.toWei(GWei: 10),
gasLimit: 21000,
nonce: 0
)
let tx = try! wallet.signTransaction(rawTransaction)
geth.sendRawTransaction(rawTransaction: tx) { result in
// Do something...
}
make bootstrap
github "yuzushioh/EthereumKit"
to your Cartfile.carthage update --platform ios
.Ryo Fukuda, @yuzushioh, yuzushioh@gmail.com
EthereumKit is released under the Apache License 2.0.