GET v1/{chainID}/transaction/approve
Generates transaction input parameters to provide access to the user's tokens for the exchange smart contract
Input Parameters
chainID
+
ID of the blockchain the token is located on (supported networks - /v1/platforms
).
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 /gasprices
.
Response Options
calldata
str
One of the input parameters for processing a transaction providing access to tokens.
estimate_gas
str
The estimated amount of gas that will be used during the transaction.
gas_price
str
Gas price value for a transaction in WEI.
to
str
Address of the smart contract the transaction should be sent to.
Request Example
Response Example
Last updated