You are able to fetch your Smart Voucher Information 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!>
      • Total amount of the vouchers.
    • pageInfo <PageInfo>
    • edges <[VoucherEdge]>
      • cursor <String!>
      • node <Voucher>
        • id <ID!>
          • Smart Voucher ID. ID is a global identifier.
        • token<Token>
          • id <ID!>
            • ID of the Smart Token which the Smart Voucher . ID is a global identifier.
        • contractAddress <String!>
          • The Smart Voucher contract address.
        • transactionHash <String!>
          • Transaction hash of the Smart Voucher publishment.
        • name <String!>
          • Smart Voucher name.
        • description <String!>
          • Description of the Smart Voucher.
        • symbol <String!>
          • Smart Voucher symbol.
        • decimals <String!>
          • Smart Voucher decimals
        • totalSupply <String!>
          • Total supply of the Smart Voucher. The format is Decimaled Number.
        • proofOfContract <File!>
          • The PDF file of the Smart Voucher contract.
          • ipfs <String!>
            • Information of the contract’s ipfs link.
        • liquid <Boolean!>
          • The Smart Voucher is liquid or not.
        • price <Fraction!>
          • Smart Voucher price.
          • numerator <String!>
            • The numerator of this fraction.
          • denominator <String!>
            • The denominator of this fraction.
        • availableAmount <String!>
          • Remaining amount of the Smart Voucher. The format is Decimaled Number.
        • vendible <Boolean!>
          • The Smart Voucher is vendible or not.
        • expiry <String>
          • Expiry date of the Smart Voucher. The format is Unix Timestamp in millisecond resolution.
        • consumable <Boolean!>
          • The Smart Voucher is consumalbe or not.
        • createdTime <String!>
          • The Smart Voucher created time. The format is Unix Timestamp in millisecond resolution.