You are able to fetch all Smart Voucher holders and amount of Smart Voucher each holder owns 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

  • vouchers <VoucherConnection!>
    • totalCount <Int!>
      • Amount of Smart Vouchers.
    • pageInfo <PageInfo!>
    • edges <[VoucherEdge]>
      • cursor <String!>
      • node <Voucher>
        • id <ID!>
          • Smart Voucher ID. ID is a global identifier.
        • contractAddress <String!>
          • Smart Voucher contract address.
        • name <String!>
          • Smart Voucher name.
        • symbol <String!>
          • Smart Voucher symbol.
        • decimals <String!>
          • Smart Voucher decimals.
        • holders <VoucherHolderConnection>
          • totalCount <Int!>
            • Total amount of the holders.
          • pageInfo <PageInfo!>
          • edges <[VoucherHolderEdge]>
            • cursor <String!>
            • node <Holder>
              • address <String!>
                • The holder’s address.
              • balance <String!>
                • Amount of the Smart Voucher the holder owns. The format is Decimaled Number.