Get Campaign Info using API
Orange provides open APIs implemented using the GraphQL protocol to allow you to get campaign information.
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!
}GraphQL Schema
Examples
Golang
Java
JavaScript
getOrangeByCampaignID
Gets campaign details by the campaign ID.
Parameters
Name
Type
Description
campaignID
Int
campaign ID
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
GraphQL Schema
Examples
Golong
Java
JavaScript
Structure of Data in Returns
CampaignItem
TaskItem
Participant
NFTINfo
Last updated
Was this helpful?