Last active
July 12, 2018 17:03
-
-
Save evgeth/145d3fdbee684b7171163240101a8020 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Web3Swift | |
let network = InfuraNetwork(chain: "mainnet", apiKey: "metamask") | |
let txHash = try SendRawTransactionProcedure( | |
network: network, | |
transactionBytes: EthDirectTransactionBytes( | |
network: network, | |
senderKey: EthPrivateKey(hex: "0x1636...a9f5"), | |
recipientAddress: EthAddress(hex: "0x79d2...D403"), | |
weiAmount: EthNumber(hex: "0xde0b6b3a7640000") // 1 ETH | |
) | |
).call() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment