Aptos · Schema

UserTransaction

A transaction submitted by a user to change the state of the blockchain

BlockchainWeb3MoveLayer 1CryptocurrencyNFTSmart ContractsDeFiTransactionsAccountsGraphQLgRPC

Properties

Name Type Description
version object
hash object
state_change_hash object
event_root_hash object
state_checkpoint_hash object
gas_used object
success boolean Whether the transaction was successful
vm_status string The VM status of the transaction, can tell useful information in a failure
accumulator_root_hash object
changes array Final state of resources changed by the transaction
sender object
sequence_number object
max_gas_amount object
gas_unit_price object
expiration_timestamp_secs object
payload object
signature object
replay_protection_nonce object
txn_limits_request object
events array Events generated by the transaction
timestamp object
View JSON Schema on GitHub

JSON Schema

UserTransaction.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://api-evangelist.github.io/aptos/json-schema/UserTransaction.json",
  "title": "UserTransaction",
  "type": "object",
  "description": "A transaction submitted by a user to change the state of the blockchain",
  "required": [
    "version",
    "hash",
    "state_change_hash",
    "event_root_hash",
    "gas_used",
    "success",
    "vm_status",
    "accumulator_root_hash",
    "changes",
    "sender",
    "sequence_number",
    "max_gas_amount",
    "gas_unit_price",
    "expiration_timestamp_secs",
    "payload",
    "events",
    "timestamp"
  ],
  "properties": {
    "version": {
      "$ref": "#/components/schemas/U64"
    },
    "hash": {
      "$ref": "#/components/schemas/HashValue"
    },
    "state_change_hash": {
      "$ref": "#/components/schemas/HashValue"
    },
    "event_root_hash": {
      "$ref": "#/components/schemas/HashValue"
    },
    "state_checkpoint_hash": {
      "$ref": "#/components/schemas/HashValue"
    },
    "gas_used": {
      "$ref": "#/components/schemas/U64"
    },
    "success": {
      "type": "boolean",
      "description": "Whether the transaction was successful"
    },
    "vm_status": {
      "type": "string",
      "description": "The VM status of the transaction, can tell useful information in a failure"
    },
    "accumulator_root_hash": {
      "$ref": "#/components/schemas/HashValue"
    },
    "changes": {
      "type": "array",
      "description": "Final state of resources changed by the transaction",
      "items": {
        "$ref": "#/components/schemas/WriteSetChange"
      }
    },
    "sender": {
      "$ref": "#/components/schemas/Address"
    },
    "sequence_number": {
      "$ref": "#/components/schemas/U64"
    },
    "max_gas_amount": {
      "$ref": "#/components/schemas/U64"
    },
    "gas_unit_price": {
      "$ref": "#/components/schemas/U64"
    },
    "expiration_timestamp_secs": {
      "$ref": "#/components/schemas/U64"
    },
    "payload": {
      "$ref": "#/components/schemas/TransactionPayload"
    },
    "signature": {
      "$ref": "#/components/schemas/TransactionSignature"
    },
    "replay_protection_nonce": {
      "$ref": "#/components/schemas/U64"
    },
    "txn_limits_request": {
      "$ref": "#/components/schemas/UserTxnLimitsRequest"
    },
    "events": {
      "type": "array",
      "description": "Events generated by the transaction",
      "items": {
        "$ref": "#/components/schemas/Event"
      }
    },
    "timestamp": {
      "$ref": "#/components/schemas/U64"
    }
  }
}