Light Mode
Transaction approve
GET
/v1/{chainID}/transaction/approveGenerates transaction input parameters to provide access to the user's tokens for the exchange smart contract.
Request
Path Params
chainID
enum<integer>
required
The blockchain ID.
(Supported list: v1/platforms)
Allowed values:
110561372504216143114
Default:
1
Example:
1
Query Params
tokenAddress
string
required
Address of the smart contract of the token for which the access request is generated.
Default:
0xdAC17F958D2ee523a2206206994597C13D831ec7
Example:
0xdAC17F958D2ee523a2206206994597C13D831ec7
takerAddress
string
optional
Address of user’s wallet which will provide approve. When provided the gas will be estimated exactly.
Default:
0x06723241Ed93A57a0227207c5ACd8EcAafc6735c
amount
integer
optional
The amount of user tokens to which access is granted. By default - infinite number.
Default:
100000000000
gasPrice
integer
optional
Cost of gas for an approve transaction. By default: medium.
Default:
100000000000
contractAddress
string
optional
Contract that we want to give an approval. If not passed, then the default for chain is used.
Request samples
Responses
OK(200)
Bad Request(400)
Internal Server Error(500)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
object {0}
Example
{}
Last modified: 6 months ago