WOLFRAM

Interact with the Ethereum blockchain using highly customizable operations to submit transactions.

Check current sender balance

Use BlockchainAddressData to check your balance and transaction count:

Use CurrencyConvert to convert the balance from wei to US dollars:

In[2]:=2
Out[2]=2

Extract the transaction count:

In[3]:=3
Out[3]=3

Create the transaction object

Use BlockchainTransaction to build the transaction object, using the preceding transaction count:

  • The transaction exists locally until it is submitted to the Ethereum blockchain.

Sign the transaction

Use BlockchainTransactionSign to sign the transaction with the private key:

In[5]:=5
Out[5]=5

Submit the transaction

Use BlockchainTransactionSubmit to send the transaction to the blockchain:

In[6]:=6
Out[6]=6
  • After the transaction is submitted, you must wait for it to be included in a block. The block can then be mined and added to the blockchain.