Approval

With our approval API, you can get valid approval information for all Tokens of the user. If the user's approval is at risk of losing assets, you can give the user a danger warning.


Approval Infos

URL

Request Headers

FieldTypeRequiredDescription
X-API-KEYstringYesApi key (get it)

Request parameters

FieldTypeRequiredDescription
chainIdnumberYesBlock chain ID
ownerstringYesWallet address
operatorstringThe address of the approval target
riskDetectionbooleanTurn on risk detection (If turned on, it will slow down the return speed of the request)
tokenInfobooleanTurn on token info (If turned on, it will slow down the return speed of the request)

Response body

FieldTypeDescription
approvalsApproval[]Approval info list
riskInfosTokenRisk[]Risks detected in transaction
tokenInfoMapmap<string, TokenInfo>Asset token information transferred in transaction