v2

latestOpenAPI 3.0.12026-07-26334612609.5 KB
SDK

Simulate an EVM AA UserOp

post/sdk/{environmentId}/evm/simulateUserOp

Path parameters

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

ID of the environment

Request body

chainIdstring required
operationobject required
entryPointstring required

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

domainstring
valuestring required

Example request

{
  "chainId": "An example name",
  "entryPoint": "0xbF394748301603f18d953C90F0b087CBEC0E1834",
  "domain": "An example name",
  "value": "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"
      }
    }
  ]
}