Get all of your campaigns’ information.

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

  • id <String!>
    • Your user ID of FsTK Engine. ID is a global identifier.
  • campaigns <CampaignConnection>
    • pageInfo <PageInfo>
    • edges <[CampaignEdge]>
      • cursor <String!>
      • node <Campaign>
        • id <ID!>
          • Campaign ID. ID is a global identifier.
        • name <String!>
          • Campaign name.
        • description <String!>
          • Campaign description.
        • token/voucher <Token> or <Voucher>
          • Type of asset the campaign sale.
          • id <ID!>
            • Smart Token/Voucher ID. ID is a global identifier.
        • contractAddress <String!>
          • The campaign contract address.
        • isOpen <Boolean!>
          • The campaign is open or not.
        • stages <[CampaignStage]!> (Currently only support one stage in stages.)
          • name <String!>
            • The campaign stage name.
          • startTime <String!>
            • The campaign stage start time. The format is Unix Timestamp in millisecond resolution.
          • endTime <String!>
            • The campaign stage end time. The format is Unix Timestamp in millisecond resolution.
          • priceMultiplier <Fraction!>
            • The multiplier to the price for this campaign stage. Must be less than or equal to 1. Must be greater than 0. (For example, assume the original Smart Voucher price is 1 YourVoucher = 100 YourToken, if you have created a 20% discount stage, the priceMultiplier you get is: {numerator: 80, denominator: 100}. So the token price is allowed to be 1 YourVoucher = 80 YourToken.)
            • numerator <String!>
              • The numerator of this fraction.
            • denominator <String!>
              • The denominator of this fraction.
          • cap <String!>
            • Total amount of token for sale during this campaign stage. The format is Decimaled Number.
          • isPrivate <Boolean!>
            • The campaign stage is private or not.
          • description <String!>
            • The campaign stage description.
          • sold <String>
            • Amount of Smart Token/Voucher have sold. The format is Decimaled Number.
        • transactionHash <String!>
          • Transaction hash of the campaign.
        • createdTime <String!>
          • The campaign created time.