contracts

Get the account traces for a historical transaction on the network with the given transaction ID or hash

Changed on

Inspects contract result related data for a transaction and returns a response containing detailed information for the accounts needed for the transaction execution with some basic fields about them.

The Accept-Encoding request header must include gzip. Responses can be large (especially with code or storage), and compression is required to keep the payload size bounded.

When diff=true, each post entry always includes address and only the fields that changed relative to the matching pre entry. Unchanged storage keys are omitted; slots cleared during the transaction are reported as a 32-byte zero word.

get/api/v1/contracts/results/{transactionIdOrHash}/prestate

Request

  • Base URL
    (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/v1/contracts/results/{transactionIdOrHash}/prestate
  • Auth
    none declared. Required headers: Accept-Encoding

Path parameters

transactionIdOrHashstring required

Transaction Id or a 32 byte hash with optional 0x prefix

Query parameters

diffboolean

If provided and set to true, include account trace information with changes from transaction execution

codeboolean

If provided and set to true, bytecode information will be included in the response

storageboolean

If provided and set to true, storage information will be included in the response

Headers

Accept-Encodingstring required
Example:gzip

gzip is required because the response can be large

Response

OK

Changes