Skip to main content
GET
/
tokens
List Tokens
curl --request GET \
  --url https://api.g2cplatform.com/v2/tokens \
  --header 'X-API-Key: <api-key>'
{
  "tokens": [
    {
      "tokenId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "type": "fungible",
      "symbol": "<string>",
      "balance": 123,
      "metadata": {
        "name": "<string>",
        "description": "<string>",
        "image": "<string>",
        "attributes": [
          {
            "trait_type": "<string>",
            "value": "<string>"
          }
        ],
        "external_url": "<string>"
      },
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "blockchain": {
        "txId": "<string>",
        "lastTxId": "<string>"
      }
    }
  ],
  "pagination": {
    "limit": 123,
    "offset": 123,
    "total": 123,
    "hasNext": true,
    "hasPrevious": true
  }
}

Authorizations

X-API-Key
string
header
required

API key for authenticating requests. Include in X-API-Key header.

Query Parameters

limit
integer
default:20

Maximum number of tokens to return

Required range: 1 <= x <= 100
offset
integer
default:0

Number of tokens to skip for pagination

Required range: x >= 0
tokenType
enum<string>

Filter by token type

Available options:
fungible,
nft
walletId
string<uuid>

Filter by wallet ID

symbol
string

Filter by token symbol (fungible tokens only)

Response

Tokens retrieved successfully

tokens
object[]
required
pagination
object
required