You are able to fetch all your Smart Vouchers balance via this API.

GraphQL API

  • Query String
  • HTTP Headers

HTTP Request and Response

Request

  • URL
    • For development: https://test.fstk.io/api
    • For production: https://engine.fstk.io/api
  • Method: POST
  • Headers
    • accept: application/json
    • content-type: application/json
    • authorization: Bearer [JWT Web-to-Server access token]
      • (for example)
  • Body

    The value of query in the body is a String.

Response

Parameters

Response

  • voucherBalance <VoucherBalanceConnection>
    • totalCount <Int!>
      • Amount of Smart Tokens you own.
    • pageInfo <PageInfo>
    • edges <[VoucherBalanceEdge]>
      • cursor <String!>
      • Please refer to document of GraphQL
      • node <VoucherBalance>
        • voucher <Voucher>
          • id <ID!>
            • Smart Voucher ID. ID is a global identifier.
          • contractAddress <String!>
            • Contract address of the Smart Voucher.
          • name <String!>
            • Smart Voucher name.
          • symbol <String!>
            • Smart Voucher symbol.
          • decimals <String!>
            • Smart Voucher decimals.
        • value <String!>
          • Amount of the Smart Token you own. The format is Decimaled Number.