fees transfer - Stacks

Returns the estimated fee rate for a standard STX token-transfer transaction, in microSTX per byte.

Endpoint

httpGET /v2/fees/transfer

Example

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

curl "${STACKS_RPC}v2/fees/transfer"

Response

json1

Response Fields

FieldTypeDescription
(value)numberEstimated fee rate in microSTX per byte for a token transfer

Use Cases

  • Fee estimation: Price a simple STX transfer before signing
  • Baseline: Use as a floor for transfer fee calculations

Error Handling

ErrorMessageDescription
400 / Bad requestBad requestA path, query, or body parameter was invalid or the transaction was rejected
404 / Not foundNot foundThe account, contract, map entry, variable, or constant does not exist
403 / RBAC: access deniedAccess deniedThe GetBlock access token is missing or incorrect