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.
| Field | Type | Required | Description |
|---|
| X-API-KEY | string | Yes | Api key (get it) |
| Field | Type | Required | Description |
|---|
| chainId | number | Yes | Block chain ID |
| owner | string | Yes | Wallet address |
| operator | string | | The address of the approval target |
| riskDetection | boolean | | Turn on risk detection (If turned on, it will slow down the return speed of the request) |
| tokenInfo | boolean | | Turn on token info (If turned on, it will slow down the return speed of the request) |
| Field | Type | Description |
|---|
| approvals | Approval[] | Approval info list |
| riskInfos | TokenRisk[] | Risks detected in transaction |
| tokenInfoMap | map<string, TokenInfo> | Asset token information transferred in transaction |