Get Tokens

Retrieve a list of all tokens for a merchant, including their details and holders.

GETapi.metal.build/merchant/tokens

List all tokens

This endpoint returns an array of all tokens associated with your merchant account.

Response attributes

  • Name
    id
    Type
    string
    Description

    The id of the token.

  • Name
    address
    Type
    string
    Description

    The contract address of the token.

  • Name
    name
    Type
    string
    Description

    The name of the token.

  • Name
    symbol
    Type
    string
    Description

    The ticker symbol of the token.

  • Name
    totalSupply
    Type
    string
    Description

    Total token supply.

  • Name
    airdropSupply
    Type
    string
    Description

    Available supply for airdrops.

  • Name
    rewardSupply
    Type
    string
    Description

    Available supply for rewards.

  • Name
    merchantSupply
    Type
    string
    Description

    The amount allocated to the merchant.

  • Name
    merchantAddress
    Type
    string
    Description

    The address of the merchant.

  • Name
    price
    Type
    string
    Description

    Current price of the token in USD.

Request

GET
api.metal.build/merchant/tokens
curl https://api.metal.build/merchant/tokens \
  -H "x-api-key: YOUR-API-KEY"

Response

{
  [
    {
      "id": "0x1234567890abcdef1234567890abcdef12345678",
      "address": "0x1234567890abcdef1234567890abcdef12345678",
      "name": "Test Token",
      "symbol": "TEST",
      "totalSupply": "100000000000000000000000000",
      "airdropSupply": "1000000000000000000000000",
      "rewardSupply": "1000000000000000000000000",
      "merchantSupply": "1000000000000000000000000",
      "merchantAddress": "0x1234567890abcdef1234567890abcdef12345678",
      "price": "0.015",
    },
    {
      "id": "0x9876543210fedcba9876543210fedcba98765432",
      "address": "0x9876543210fedcba9876543210fedcba98765432",
      "name": "Test Token 2",
      "symbol": "TEST2",
      "totalSupply": "100000000000000000000000000",
      "airdropSupply": "2000000000000000000000000",
      "rewardSupply": "2000000000000000000000000",
      "merchantSupply": "2000000000000000000000000",
      "merchantAddress": "0x9876543210fedcba9876543210fedcba98765432",
      "price": "0.025",
    }
  ],
}

Was this page helpful?