checkApprove
Swap RPC
checkApprove
Learn how to use the checkApprove JSON-RPC method.
POST
checkApprove
Documentation Index
Fetch the complete documentation index at: https://uasdev.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Contextualizing checkApprove
checkApprovereturns a Boolean based upon whether a given address has approved spending of a specified amount for a particular ERC-20 token. It takes:address- string.- Token object, containing:
tokenAddress- string.amount- string.
Query example
JSON
Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Body
application/json
Request to check if a token is approved for swapping.
Version of the JSON-RPC protocol, should be 2.0.
Example:
"2.0"
The request identifier.
Example:
1
API method being called.
Available options:
particle_swap_checkApprove Parameters for checking token approval.
User address.
Example:
"0x369aa8a7a7BE683E1a46d9A056806B2B3FD778C8"
The blockchain chain ID.
Example:
1
Response
200 - application/json
Successful response with approval status.
