Transaction Simulation

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

Request Headers

FieldTypeRequiredDescription
X-API-KEYstringYesApi key (get it)

Request body

FieldTypeRequiredDescription
chainIdnumberBlock chain ID
fromstringYesAddress the transaction is sent from
tostringYesAddress the transaction is directed to
datastringData sent by the transaction
valuestringAmount in wei of ETH to transfer from sender to recipient
gasstringMax amount of gas available to the transaction
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
changesChange[]Asset Changes in transactions
gasUsednumberGas cost in transactions
errorstring | nullTransaction error message
tokenRiskMapmap<string, TokenRisk>Risks detected in asset changes
tokenInfoMapmap<string, TokenInfo>Asset token information transferred in asset changes