Check if token approval is required

Allows the requestor to check if the walletAddress has the required approval to transact the token up to the amount specified. If the walletAddress does not have the required approval, the response will include a transaction to approve the token spend. If the walletAddress has the required approval, the response will return the approval with a null value. If the parameter includeGasInfo is set to true and an approval is needed, then the response will include both the transaction and the gas fee for the approval transaction.

Certain tokens may require that approval be reset before approving a new spend amount. If this condition is detected for the walletAddress and token, the response will include the necessary approval cancellation in the cancel paragraph. When cancel is not applicable, the paragraph will have a null value.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required

The wallet address which will be used to send the token.

string
required

The token which will be sent, specified by its token address. For a list of supported tokens, see the FAQ.

string
required

The quantity of tokens denominated in the token's base units. (For example, for an ERC20 token one token is 1x10^18 base units. For one USDC token one token is 1x10^6 base units.) This value must be greater than 0.

number
enum
required

The unique ID of the blockchain. For a list of supported chains see the FAQ.

string
enum
Defaults to urgent

The urgency impacts the estimated gas price of the transaction. The higher the urgency, the higher the gas price, and the faster the transaction is likely to be selected from the mempool. The default value is urgent.

Allowed:
boolean
Defaults to false

If set to true, the response will include the estimated gas fee for the proposed transaction.

string

The token which will be received, specified by its token address. For a list of supported tokens, see the FAQ.

number
enum

The unique ID of the blockchain. For a list of supported chains see the FAQ.

Responses

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json