Skip to main content
GET
/
tokens
/
{tokenId}
Get Token
curl --request GET \
  --url https://api.g2cplatform.com/v2/tokens/{tokenId} \
  --header 'X-API-Key: <api-key>'
{
  "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>"
  }
}

Authorizations

X-API-Key
string
header
required

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

Path Parameters

tokenId
string<uuid>
required

Unique identifier for the token

Response

Token details retrieved successfully

tokenId
string<uuid>
required

Unique identifier for the token instance

type
enum<string>
required

Type of token

Available options:
fungible,
nft
symbol
string

Symbol for fungible tokens

balance
number<double>

Current balance for fungible tokens

metadata
object

Metadata for NFT tokens

createdAt
string<date-time>

When the token was created (minted)

updatedAt
string<date-time>

When the token balance was last updated

blockchain
object