contracts

Get the contract actions from a contract on the network for a given transactionId or ethereum transaction hash

Returns a list of ContractActions for a contract's function executions for a given transactionId or ethereum transaction hash.

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

Path parameters

transactionIdOrHashstring required

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

Query parameters

indexstring

The index of a contract action

limitinteger

The maximum number of items to return

order'asc' | 'desc'

The order in which items are listed

Response

OK

Example response

{
  "actions": [
    {
      "call_depth": 1,
      "call_operation_type": "CALL",
      "call_type": "CALL",
      "caller": "0.0.2",
      "caller_type": "ACCOUNT",
      "from": "0x0000000000000000000000000000000000000065",
      "gas": 50000,
      "gas_used": 50000,
      "input": "0x123456",
      "recipient": "0.0.2",
      "recipient_type": "ACCOUNT",
      "result_data": "0x123456",
      "result_data_type": "OUTPUT",
      "timestamp": "1586567700.453054000",
      "to": "0x0000000000000000000000000000000000001f41",
      "value": 50000
    }
  ]
}

Changes

Changed in 1 of the 53 revisions of this API.11

    • the response property _status/messages/items/data became nullable for the status 400

      response-property-became-nullable

    • the response property _status/messages/items/data became nullable for the status 404

      response-property-became-nullable

    • the response property _status/messages/items/detail became nullable for the status 400

      response-property-became-nullable

    • the response property _status/messages/items/detail became nullable for the status 404

      response-property-became-nullable

    • the response property actions/items/caller became nullable for the status 200

      response-property-became-nullable

    • the response property actions/items/input became nullable for the status 200

      response-property-became-nullable

    • the response property actions/items/recipient became nullable for the status 200

      response-property-became-nullable

    • the response property actions/items/recipient_type became nullable for the status 200

      response-property-became-nullable

    • the response property actions/items/result_data became nullable for the status 200

      response-property-became-nullable

    • the response property actions/items/to became nullable for the status 200

      response-property-became-nullable

    • the response property links/next became nullable for the status 200

      response-property-became-nullable

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