GET v1/{chainID}/transaction/approve
Generates transaction input parameters to provide access to the user's tokens for the exchange smart contract
Input Parameters
Name | Required | Description |
---|---|---|
chainID | + | ID of the blockchain the token is located on (supported networks - |
tokenAddress | + | Address of the smart contract of the token for which the access request is generated. |
amount | - | The amount of user tokens to which access is granted. By default - infinite number. |
gasPrice | - | Value of gas price for making a transaction in WEI (nAVAX for Avalanche) (1 GWEI = 1000000000 WEI), default value – the value high from the method |
Response Options
Name | Data Type | Description |
---|---|---|
calldata |
| One of the input parameters for processing a transaction providing access to tokens. |
estimate_gas |
| The estimated amount of gas that will be used during the transaction. |
gas_price |
| Gas price value for a transaction in WEI. |
to |
| Address of the smart contract the transaction should be sent to. |
Request Example
Response Example
Last updated