EVMGenericTx Template
Warning: This API has been deprecated. Please use Wallets. Contact your sales representative if you require additional blockchain support.
Use this template to broadcast to EVM chains like Ethereum, Polygon, BSC, etc. For more on these fields, see the official Ethereum documentation.
User action signature required. See User Action Signing for more information.
Request headers required. See Request Headers for more information.
Authentication required. See Authentication Headers for more information.
Required Permissions
Name | Conditions |
---|---|
| Always Required |
Fields
Request body fields | Required/Optional | Description | Type |
---|---|---|---|
| Required | Blockchain address of target contract or payee. | String |
| Required | Encoded hex string indicating which function in the smart contract to call with which parameters. Can also be an entire encoded contract in the case of contract deployment. For more information, see the encodeFunctionCall web3.js documentation. | String |
| Optional | The maximum amount of gas that can be spent for executing the transaction. If omitted, it will be calculated automatically. | String (of an Integer) |
| Optional | The transaction number to guarantee idempotency. If omitted, it will be provided automatically. Note the same nonce can be submitted multiple times with a higher | Integer |
| Required if making a payment | Amount of the native currency to transfer denominated in WEI. Please see here for a description of Ether units. Also see: https://eth-converter.com/ | String (of an Integer like "1000000" WEI) |
| Optional | The maximum amount of gas to be included as a tip to the validator. If omitted, it will be calculated automatically. | String (of an Integer like "1000000" WEI) |
| Optional | The maximum amount for gas willing to be paid for the transaction. If omitted, it will be calculated automatically. | String (of an Integer like "1000000" WEI) |
| Optional | If specified, this will revert back to a Type 0 transaction (pre-EIP1559 on Ethereum). This can be used eg. to zero out an account. Can not be used in conjunction with the gas fields above. | String (of an Integer like "1000000" WEI) |
Request example
Response
Response example
Status begins as Initiated
and changes to Executed
once broadcast to the mempool. Use GetTransactionById to query for updated status and to retrieve a blockchain transaction hash.
Last updated