Get Campaign Info using API

Orange provides open APIs implemented using the GraphQL protocol to allow you to get campaign information.

When sending requests, you need to include an URL, which is represented in the doc withhttp://<api-endpoint>/query. To obtain the actual URL, please contact us using Discord or Twitter.

Method List

Method Name
Description

Gets campaign details by the ID of the relevant NFT

Gets campaign details by the campaign ID

Gets campaign details by the name of the campaign owner

getOrangeByNFTTokenID

Gets campaign details by the ID of the relevant NFT.

Parameters

Name
Type
Description

tokenID

Int

NFT token ID

chain

String

chain name (e.g. eth, polygon, bsc)

Returns

type GetOrangeByNFTTokenIDResp{
    campaignInfo:OrangeCampaignItem!
    nftInfos:NFTINfo!
    claimTime:Int!
    owner:Participant!
}

To view the full list of variables, please refer to Structure of Data in Returns.

GraphQL Schema

Examples

Golang

Java

JavaScript

getOrangeByCampaignID

Gets campaign details by the campaign ID.

Parameters

Name
Type
Description

campaignID

Int

campaign ID

Returns

To view the full list of variables, please refer to Structure of Data in Returns.

GraphQL Schema

Examples

Golong

Java

JavaScript

getOrangeByCampaignHostName

Gets campaign details by the name of the campaign owner.

Parameters

Name
Type
Description

name

String

name of the campaign host

Returns

To view the full list of variables, please refer to Structure of Data in Returns.

GraphQL Schema

Examples

Golong

Java

JavaScript

Structure of Data in Returns

CampaignItem

TaskItem

Participant

NFTINfo

Last updated

Was this helpful?