POST
/
sdk
/
{environmentId}
/
evm
/
simulateTransaction
curl --request POST \
  --url https://app.dynamicauth.com/api/v0/sdk/{environmentId}/evm/simulateTransaction \
  --header 'Content-Type: application/json' \
  --data '{
  "chainId": "An example name",
  "data": "An example name",
  "from": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
  "to": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
  "value": "An example name",
  "domain": "An example name"
}'
{
  "inAssets": [
    {
      "asset": {
        "address": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
        "chainId": 123,
        "chainName": "<string>",
        "decimals": 123,
        "logoUrl": "<string>",
        "name": "<string>",
        "symbol": "<string>",
        "type": "<string>"
      },
      "transferIn": [
        {
          "rawValue": "<string>",
          "summary": "<string>",
          "usdPrice": "<string>",
          "value": "<string>"
        }
      ],
      "transferOut": [
        {
          "rawValue": "<string>",
          "summary": "<string>",
          "usdPrice": "<string>",
          "value": "<string>"
        }
      ]
    }
  ],
  "outAssets": [
    {
      "asset": {
        "address": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
        "chainId": 123,
        "chainName": "<string>",
        "decimals": 123,
        "logoUrl": "<string>",
        "name": "<string>",
        "symbol": "<string>",
        "type": "<string>"
      },
      "transferIn": [
        {
          "rawValue": "<string>",
          "summary": "<string>",
          "usdPrice": "<string>",
          "value": "<string>"
        }
      ],
      "transferOut": [
        {
          "rawValue": "<string>",
          "summary": "<string>",
          "usdPrice": "<string>",
          "value": "<string>"
        }
      ]
    }
  ],
  "counterparties": [
    "0xbF394748301603f18d953C90F0b087CBEC0E1834"
  ],
  "priceData": {
    "nativeTokenUsdPrice": 123
  },
  "showTotalFiat": true
}

Path Parameters

environmentId
string
required

ID of the environment

Required string length: 36

Body

application/json
chainId
string
required
Maximum length: 255
data
string
required
from
string
required

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

Maximum length: 255
to
string
required

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

Maximum length: 255
value
string
required
Maximum length: 255
domain
string
Maximum length: 255

Response

200
application/json
Simulated transaction result
inAssets
object[]
required
outAssets
object[]
required
priceData
object
required
showTotalFiat
boolean
required
counterparties
string[]