wait transaction by hash - Movement

Returns a transaction by hash, blocking until it is committed (or a timeout). Confirms a just-submitted transaction without client-side polling.

Endpoint

httpGET /v1/transactions/wait_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/wait_by_hash/0xade..."

Response

json{
    "version": "285000000",
    "hash": "0xade...",
    "success": true,
    "vm_status": "Executed successfully",
    "gas_used": "7",
    "type": "user_transaction"
}

Response Fields

FieldTypeDescription
successbooleanWhether the transaction succeeded
vm_statusstringVM status once committed

Use Cases

  • Confirmation: Wait for a submitted transaction to commit without polling

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