account - Movement

Returns the core on-chain data of an account: its current sequence number (used as the nonce for the next transaction) and its authentication key.

Endpoint

httpGET /v1/accounts/{address}

Path Parameters

ParameterTypeDescription
addressstringAccount address (0x-prefixed, 32-byte hex)

Query Parameters

ParameterTypeDescription
ledger_versionstringRead the account at a specific ledger version

Example

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

curl "${MOVEMENT_REST}v1/accounts/0x1"

Response

json{
    "sequence_number": "42",
    "authentication_key": "0x0000000000000000000000000000000000000000000000000000000000000001"
}

Response Fields

FieldTypeDescription
sequence_numberstringNext transaction sequence number (nonce)
authentication_keystringAccount authentication key

Use Cases

  • Transaction Building: Read the sequence number before submitting
  • Account Checks: Confirm an account exists on chain

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