Auction
The GraphQL queries that can be performed on the Auction ADO.
Response Interface
queryAuctionIds
Queries the Auction Ids for the specified token and contract.
Name | Type | Description |
---|---|---|
| string | The address of the contract to query. |
| string | The Id of the token we want to get Auction Ids for. |
| string | The contract address of the NFT contract. |
QueryAuctionAuctionIds
QueryAuctionAuctionIdsResponse
Name | Type | Description |
---|---|---|
| number[] | The auction Ids. |
queryAuctionInfo
Queries auction information from an auction contract about a particular token contract by address.
Name | Type | Description |
---|---|---|
| string | The address of the contract to query. |
| string | The contract address of the NFT contract. |
QueryAuctionAuctionInfo
QueryAuctionAuctionInfoResponse
Name | Type | |
---|---|---|
| number[] | The auction Ids of the auctions that use the specified |
| string | The contract address of the auction ADO. |
| string | The Id of the token that was auctioned. |
queryAuctionState
Queries auction state from an auction contract given an auction ID
Name | Type | Description |
---|---|---|
| string | The address of the contract to query. |
| number | The Id of the auction to get the state of. |
QueryAuctionAuctionState
QueryAuctionAuctionStateResponse
Name | Type | Description |
---|---|---|
| string | The Id of the auction. |
| string | The denom of the funds used in the auction. |
| Record<string, any> | When the auction will end. |
| string | The address of the highest bidder. |
| string | The highest bid. |
| boolean | Whether the auction was cancelled. |
| Record<string, any> | When the auction will start. |
| string[] | Vector of stirngs representing the whitelisted addresses. |
| string | The minimum bid that can be placed on the auctioned token. |
queryBids
Queries the bids placed on the specified auctionId
.
Name | Type | Description |
---|---|---|
| string | The address of the contract to query. |
| number | The Id of the auction to query bids for. |
QueryAuctionBids
QueryAuctionBidsResponse
Name | Type | Description |
---|---|---|
| Bid[] | A vector of Bid containing the bids of the specified auction. |
Bid
Name | Type | Description |
---|---|---|
| number | The amount of coins of the bid. |
| string | The bidder address. |
| string | The time of the bid. |
queryAuctionLatestState
Queries an auction contract for the latest auction state for a given token address/id tuple
Name | Type | Description |
---|---|---|
| string | The address of the contract you want to query. |
| string | The contract address of the NFT being auctioned. |
| string | The Id of the token/NFT being auctioned. |
QueryAuctionLatestAuctionState
QueryAuctionLatestAuctionStateResponse
Name | Type | Description |
---|---|---|
| string | The id of the auction. |
| string | The denom the auction is in. |
| Record<string, any> | The end of the auction. |
| string | The address of the highest bidder. |
| string | The amount of the highest bid. |
| boolean | Whether or not the auction has been cancelled. |
| Record<string, any> | The start of the auction. |
| string[] | The whitelisted addresses if they were specified at time of creation. |
| string | The minimum bid that can be placed on the auctioned token. |
Last updated