Simulator

Get quick simulated transaction details

Call the info endpoint to fetch only the transaction_info object for a simulated transaction from a specific account or project. The response also return the block header information and block override data as separate objects. You need to provide the ID of the simulated transaction.

This endpoint returns the same data as the Fetch full simulation details by transaction ID just formatted in a different way.

get/v1/account/{accountSlug}/project/{projectSlug}/simulations/{simulationId}/info

Path parameters

accountSlugstring required

Account slug of the user

projectSlugstring required

Project slug of the account

simulationIdstring required

Simulation Id to get info for

Response

A successful response.

SimulationsSingleInfoGetResponse required

An object with details about simulated transaction info by ID for given project.

Example response

{
  "transaction_info": {
    "id": "e07c0269-3e2c-41b0-986a-74dc5a357c7d",
    "network_id": "1",
    "block_hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
    "block_number": "17884583",
    "transaction_index": "0",
    "from": "0x3f41a1cfd3c8b8d9c162de0f42307a0095a6e5df",
    "to": "0xdef171fe48cf0115b1d80b88dc8eab59176fee57",
    "input": "0xa94e78ef000000000000000000000000000000000000000000000000000000000000002000000000000000000000000068037790a0229e9ce6eaa8a99ea92964106c470300000000000000000000000000000000000000000000010f0cf064dd592000000000000000000000000000000000000000000000000000000000000145dc1b2e00000000000000000000000000000000000000000000000000000001477f4d7d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000007800000000000000000000000000000000000000000000000000000000064d281e65c9438a5a99c4bccb1035296d5d2d8d200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000320000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000009be264469ef954c139da4a45cf76cbcc5e3a6a73000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000006000000000000000000000000e592427a0aece92de3edee1f18e0157c05861564000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000064db6806000000000000000000000000000000000000000000000000000000000000002b68037790a0229e9ce6eaa8a99ea92964106c47030001f4a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000000000000000000000000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000009be264469ef954c139da4a45cf76cbcc5e3a6a730000000000000000000000000000000000000000000000000000000000002710000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000060000000000000000000000001b81d678ffb9c0263b24a97847620c99d213eb14000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000064db6806000000000000000000000000000000000000000000000000000000000000002ba0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000064dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
    "nonce": "1094",
    "value": "0",
    "decoded_info": {
      "method_name": "multiSwap"
    },
    "gas": "648318",
    "gas_price": "18312000018",
    "gas_used": "337375",
    "access_list": [
      {
        "address": "0x3F41a1CFd3C8B8d9c162dE0f42307a0095A6e5DF"
      }
    ],
    "status": true,
    "error_message": "",
    "addresses": [
      "0x3f41a1cfd3c8b8d9c162de0f42307a0095a6e5df",
      "0xdef171fe48cf0115b1d80b88dc8eab59176fee57",
      "0xbd7b550d2e7571383d84acf597a00d341e5c406e",
      "0x216b4b4ba9f3e719726886d34a177484278bfcae",
      "0x68037790a0229e9ce6eaa8a99ea92964106c4703",
      "0x9be264469ef954c139da4a45cf76cbcc5e3a6a73",
      "0xe592427a0aece92de3edee1f18e0157c05861564",
      "0xd7dcb0eb6aab643b85ba74cf9997c840fe32e695",
      "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
      "0xa2327a938febf5fec13bacfb16ae10ecbc4cbdcf",
      "0x1b81d678ffb9c0263b24a97847620c99d213eb14",
      "0x04c8577958ccc170eb3d2cca76f9d51bc6e42d8f",
      "0xd1faf8baca90e86d2b12650173e972526c48a7cc",
      "0xdac17f958d2ee523a2206206994597c13d831ec7"
    ],
    "contract_ids": [
      "eth:1:0x3f41a1cfd3c8b8d9c162de0f42307a0095a6e5df",
      "eth:1:0xdef171fe48cf0115b1d80b88dc8eab59176fee57",
      "eth:1:0xbd7b550d2e7571383d84acf597a00d341e5c406e",
      "eth:1:0x216b4b4ba9f3e719726886d34a177484278bfcae",
      "eth:1:0x68037790a0229e9ce6eaa8a99ea92964106c4703",
      "eth:1:0x9be264469ef954c139da4a45cf76cbcc5e3a6a73",
      "eth:1:0xe592427a0aece92de3edee1f18e0157c05861564",
      "eth:1:0xd7dcb0eb6aab643b85ba74cf9997c840fe32e695",
      "eth:1:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
      "eth:1:0xa2327a938febf5fec13bacfb16ae10ecbc4cbdcf",
      "eth:1:0x1b81d678ffb9c0263b24a97847620c99d213eb14",
      "eth:1:0x04c8577958ccc170eb3d2cca76f9d51bc6e42d8f",
      "eth:1:0xd1faf8baca90e86d2b12650173e972526c48a7cc",
      "eth:1:0xdac17f958d2ee523a2206206994597c13d831ec7"
    ],
    "old_mint": "0",
    "deposit_tx": false,
    "system_tx": false,
    "queue_origin": "",
    "amount_to_mint": "0"
  },
  "block_header": {
    "number": "0x110ace7",
    "hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
    "state_root": "0xef53217576746e2df5a5acb6993b629e548592008c22e5eb0c543ab0e597102f",
    "parent_hash": "0x0cf8a2db87cf124e1c8fceffd12c325e07fb51736c7dce9d0f945913616cb40a",
    "sha3_uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
    "transactions_root": "0xb29cef267cf8e4b1a629f2aaeff8e3b4faf79195efcb63a08e4823070ee85f21",
    "receipts_root": "0x9290b9bda89e8bc6173f17fab6b94ef7ffb1d33770e5d0fc9e21039ef936c777",
    "logs_bloom": "0x40330cb14709a3aa3021ae29e85c20249ba3bc0c08bf9c7422cf48124a121120853709b6c20d1261603531d2b8b6810feeb920399c23eb1d8601f14e157921f9ac4b55994f4c3e686a0242ae56ea70ed84fb0b04d6ea1eed11e356cd85609fc3bf310367723a6c1b08453ceecc22d8df13f30504822865610bca1197895e7156a9bfd2756614028c1f5cf5e87bd6a43795c61841abc4d01c6475eae29ad813520b0223401451e9a3fe836ad63e967557cc99030243ad151927d4255e93b7391ed6d29882497108c2044092a24cc68291279b70a7f404ba1139210d5e1c25b40beaf2f48cc341d4c38787169830215105c1f014db5b98ccee22a94d3ba0663c1a",
    "timestamp": "0x64d22deb",
    "difficulty": "0x0",
    "gas_limit": "0x1c9c380",
    "gas_used": "0x1c9b51a",
    "base_fee_per_gas": "0x3d5200956",
    "miner": "0xcDA9D71bdfAe59b89Cee131eD3079f8AC4c77062",
    "extra_data": "0xd883010c00846765746888676f312e32302e34856c696e7578",
    "mix_hash": "0x9096c8da5df4b9bb771f91a81c3bd954d2a9c39c1bf05502877d057b1f76fb04",
    "nonce": "0x0000000000000000",
    "size": "0x0",
    "total_difficulty": "0x0"
  },
  "state_overrides": {
    "0xdac17f958d2ee523a2206206994597c13d831ec7": {
      "storage": {
        "0x0000000000000000000000000000000000000000000000000000000000000000": "0x000000000000000000000000c6cde7c39eb2f0f0095f41570af89efc2c1ea828"
      }
    }
  },
  "created_at": "1702050051710"
}

Changes

Changed in 2 of the 4 revisions of this API.63

    • added the new rid:simulation_draft enum value to the // response property for the response status

      response-property-enum-value-added

    • added the new rid:simulation_draft enum value to the // response property for the response status

      response-property-enum-value-added

    • added the new rid:simulation_draft enum value to the // response property for the response status

      response-property-enum-value-added

    • added the new rid:simulation_draft enum value to the // response property for the response status

      response-property-enum-value-added

    • added the new rid:simulation_draft enum value to the // response property for the response status

      response-property-enum-value-added

    • added the new rid:simulation_draft enum value to the // response property for the response status

      response-property-enum-value-added

    • api tag Simulator added

      api-tag-added

    • api tag Simulations removed

      api-tag-removed

    • added the non-success response with the status

      response-non-success-status-added

    This revision also has 9 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog