ApproveController_fetchApprovalsCalldata
GEThttps://api.socket.tech/v2/approval/build-tx
ApproveController_fetchApprovalsCalldata
Request​
Query Parameters
chainID stringrequired
ID of chain, e.g Ethereum Mainnet = 1
Example: 1
owner stringrequired
Wallet address of token holder
Example: 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045
allowanceTarget stringrequired
Address whose spending allowance is to be checked
Example: 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045
tokenAddress stringrequired
Contract address of token
Example: 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
amount stringrequired
Amount of tokens to approve, e.g 10 USDC (6 decimals)
Example: 10000000
Header Parameters
API-KEY string
Responses​
- 200
Return the Approval Tx Data for the given params.
- application/json
- Schema
- Example (from schema)
Schema
success booleanrequired
result
object
required
data string
to string
from string
{
"success": true,
"result": {
"data": "string",
"to": "string",
"from": "string"
}
}
Loading...