transaction by hash - Movement

Returns a single transaction by its hash, including its payload, events, state changes, and VM status. Also resolves pending transactions still in the mempool.

Endpoint

httpGET /v1/transactions/by_hash/{txn_hash}

Path Parameters

ParameterTypeDescription
txn_hashstringTransaction hash (0x-prefixed)

Example

bashexport MOVEMENT_REST=https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/

curl "${MOVEMENT_REST}v1/transactions/by_hash/0xade..."

Response

json{
    "version": "285000000",
    "hash": "0xade...",
    "success": true,
    "vm_status": "Executed successfully",
    "gas_used": "7",
    "gas_unit_price": "100",
    "sender": "0xabc...",
    "sequence_number": "42",
    "payload": {
        "type": "entry_function_payload",
        "function": "0x1::coin::transfer",
        "arguments": [
            "0xdef...",
            "1000000000"
        ]
    },
    "events": []
}

Response Fields

FieldTypeDescription
successbooleanWhether the transaction succeeded
vm_statusstringHuman-readable VM status
gas_usedstringGas consumed
payloadobjectThe transaction payload (entry function, script, …)
eventsarrayEmitted events

Use Cases

  • Receipt Lookup: Confirm a transaction and read its effects
  • Pending Tracking: Resolve a transaction still in the mempool

Error Handling

ErrorMessageDescription
400 / Bad requestBad requestA path, query, or body parameter was invalid
404 / Not foundNot foundThe account, block, transaction, or resource does not exist
403 / RBAC: access deniedAccess deniedThe GetBlock access token is missing or incorrect