Asset Changes in Transactions. With the help of our transaction simulation API, you can understand the exact impact of a transaction before it enters the blockchain.
This means accurately identifying which assets will be transferred, before it happens.
Also we help detecting risks of every transaction by using our algorithm and it will be showed under API response.
Asset Changes
Simulates a transaction and returns a full list of asset changes.
URL
| HTTP URL | HTTP Method |
|---|---|
| https://api.kekkai.io/open-apis/transaction-simulation/asset-changes | POST |
Request Headers
| Field | Type | Required | Description |
|---|---|---|---|
| X-API-KEY | string | Yes | Api key (get it) |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
| chainId | number | Block chain ID | |
| from | string | Yes | Address the transaction is sent from |
| to | string | Yes | Address the transaction is directed to |
| data | string | Data sent by the transaction | |
| value | string | Amount in wei of ETH to transfer from sender to recipient | |
| gas | string | Max amount of gas available to the transaction | |
| 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) |

