v2

latestOpenAPI 3.0.12026-07-26334612609.5 KB
SDK

Simulate an EVM transaction

post/sdk/{environmentId}/evm/simulateTransaction

Path parameters

environmentIdstring required
Example:95b11417-f18f-457f-8804-68e361f9164f

ID of the environment

Request body

chainIdstring required
datastring required
fromstring required

Valid blockchain wallet address, must be an alphanumeric string without any special characters

tostring required

Valid blockchain wallet address, must be an alphanumeric string without any special characters

valuestring required
domainstring

Example request

{
  "chainId": "An example name",
  "data": "An example name",
  "from": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
  "to": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
  "value": "An example name",
  "domain": "An example name"
}

Response

Simulated transaction result

showTotalFiatboolean required

Example response

{
  "inAssets": [
    {
      "asset": {
        "address": "0xbF394748301603f18d953C90F0b087CBEC0E1834"
      }
    }
  ],
  "outAssets": [
    {
      "asset": {
        "address": "0xbF394748301603f18d953C90F0b087CBEC0E1834"
      }
    }
  ],
  "counterparties": [
    "0xbF394748301603f18d953C90F0b087CBEC0E1834"
  ],
  "assetExposures": [
    {
      "asset": {
        "address": "0xbF394748301603f18d953C90F0b087CBEC0E1834"
      }
    }
  ]
}