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
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request GET 'https://api.entrswap.io/v1/1/transaction/approve?tokenAddress=0xdAC17F958D2ee523a2206206994597C13D831ec7' \
--header'X-API-Key;'
Responses
🟢200OK
application/json
Body
calldata
string
optional
One of the input parameters for processing a transaction providing access to tokens.