Hedera · Example Payload

Gettokensbyaccountid

Returns information for all token relationships for an account.

accounts

Gettokensbyaccountid is an example object payload from Hedera, with 8 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationIdmethodpathsummarydescriptiontagsparametersresponses

Example Payload

Raw ↑
{
  "operationId": "getTokensByAccountId",
  "method": "GET",
  "path": "/api/v1/accounts/{idOrAliasOrEvmAddress}/tokens",
  "summary": "Get token relationships info for an account",
  "description": "Returns information for all token relationships for an account.\n",
  "tags": [
    "accounts"
  ],
  "parameters": [
    {
      "name": "idOrAliasOrEvmAddress",
      "in": "path",
      "description": "Account alias or account id or evm address",
      "required": true
    },
    {
      "name": "limit",
      "in": "query",
      "description": "The maximum number of items to return",
      "required": false
    },
    {
      "name": "order",
      "in": "query",
      "description": "The order in which items are listed",
      "required": false
    },
    {
      "name": "token.id",
      "in": "query",
      "description": "The ID of the token to return information for",
      "required": false
    }
  ],
  "responses": {
    "200": "OK",
    "400": "Invalid parameter",
    "404": "Not Found"
  }
}