Skip to content

Instantly share code, notes, and snippets.

@evgeth
Last active July 12, 2018 17:03
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save evgeth/145d3fdbee684b7171163240101a8020 to your computer and use it in GitHub Desktop.
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