lookupApplicationBoxByIDAndName - Algorand

Given an application ID and box name, returns base64 encoded box name and value. Box names must be in the goal app call arg form encoding:value. For ints, use the form int:1234. For raw bytes, encode base 64 and use b64 prefix as in b64:A==. For printable strings, use the form str:hello. For addresses, use the form addr:XYZ....

Endpoint

httpGET /v2/applications/{application-id}/box

Path Parameters

ParameterTypeRequiredDescription
application-idintegerYes—

Query Parameters

ParameterTypeRequiredDescription
namestringYesA box name in goal-arg form encoding:value. For ints, use the form int:1234. For raw bytes, use the form b64:A==. For printable strings, use the form str

Example

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

curl "${ALGO_INDEXER}v2/applications/REPLACE_APPLICATION-ID/box"

Response

Returns application/json. Top-level fields:

FieldTypeDescription
namestring[name] box name, base64 encoded
roundintegerThe round for which this information is relevant
valuestring[value] box value, base64 encoded.

Error Handling

ErrorMessageDescription
400Bad requestA parameter was missing or malformed
404Not foundThe requested resource does not exist
403 / RBAC: access deniedAccess deniedThe GetBlock access token is missing or incorrect