Send Transaction
Make sure you initialize Blocto SDK first
Once your app is connected to Blocto wallet, it can send transactions on behalf of the user, with the user's permission.
In order to send a transaction, the app needs to:
Create data which is the content of transacting with a smart contract
Create value if needs to send the Ether to smart contract
Parameter | Type | Description |
---|---|---|
fromAddress | address string | the sender address |
toAddress | address string | the smart contract address |
data | hex string ( | the content of transacting with a smart contract, can use library, such as Web3j, to generate |
value (optional) | BigInteger | the amount of Ether deposit in the smart contract (if the smart contract accepts ether) |
Last updated