GetAccountMetadata()
Gets the account metadata for an IoTeX address.SUCCESS then the account metadata is be stored in accountMeta The account metadata contains the following fields:
- address: the IoTeX address
- balance: the balance in RAU
- nonce: the account nonce
- pendingNonce: the account’s pending nonce
- isContract: true if the address is a contract
GetTransactionByHash()
Gets the data for a transfer given the transaction hash.SUCCESS then the action data is stored in data. The transfer action data contains the following fields:
Creating an account
We can create an account in the device from an existing private key, or generating a new private key.From an existing private key
Generating a new private key
Getting account details
Now that the account is created, you can get the address in Ethereum or IoTeX format, and the public/private keys:Sending a transfer of IOTX
Sends a transfer of IOTX tokens First create the account object:Signing a message
Signs a message. First convert the private key to a byte array:signature.
Storing the private key to persistent memory in the device
You can store the private key in the EEPROM or flash memory of your Arduino device, or in a text file in Linux. First convert the private key to a byte array:Sending a XRC20 token transfer
First convert the private key to a byte array:Calling a contract function
This example shows how to call a contract function using the addData function of the contract with addressio1n49gavyahsukdvvxxandkxephdx93n3atcrqur as an example. You can find the contract ABI here.
First convert the private key to a byte array:

