encode submission - Movement

Returns the BCS-encoded signing message for a transaction, the bytes a client signs before submitting. Note: for production, encode locally rather than trusting a remote node.

Endpoint

httpPOST /v1/transactions/encode_submission

Example

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

curl -X POST "${MOVEMENT_REST}v1/transactions/encode_submission" \
  -H "Content-Type: application/json" \
  -d '{"sender": "0xabc...", "sequence_number": "42", "max_gas_amount": "2000", "gas_unit_price": "100", "expiration_timestamp_secs": "1736772600", "payload": {"type": "entry_function_payload", "function": "0x1::coin::transfer", "type_arguments": ["0x1::aptos_coin::AptosCoin"], "arguments": ["0xdef...", "1000000000"]}}'

Response

json"0xb5e97db07fa0bd0e5598aa3643a9bc6f6693bddc1a9fec9e674a461eaa00b193ade..."

Response Fields

FieldTypeDescription
(root)stringHex-encoded BCS signing message to be signed

Use Cases

  • Transaction Building: Produce the signing message from transaction JSON
  • Offline Signing: Pair with a local signer

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