Protokol
Search
K

Auctions

List of NFT Exchange Auction Endpoints.

All Auctions

get
https://explorer.protokol.sh/api/nft/exchange/auctions
/auctions

Examples

Curl
Typescript
curl https://explorer.protokol.sh/api/nft/exchange/auctions
const response = connection.NFTExchangeApi("auctions").getAllAuctions();
>>> Promise<ApiResponseWithPagination<AuctionsResource[]>>

Auction By Id

get
https://explorer.protokol.sh/api/nft/exchange/auctions/:id
/auctions/:id

Examples

Curl
Typescript
curl https://explorer.protokol.sh/api/nft/exchange/auctions/1d1757bc7e598fd73f0ec670e1f2c517d7d9a2a94d447bd5daa0a9384ebd4e7e
const response = connection.NFTExchangeApi("auctions").getAuctionById("VALID_ID");
>>> Promise<ApiResponse<AuctionsResource>>

Auctions Wallet

get
https://explorer.protokol.sh/api/nft/exchange/auctions/:id/wallets
/auctions/:id/wallets

Examples

Curl
Typescript
curl https://explorer.protokol.sh/api/nft/exchange/auctions/1d1757bc7e598fd73f0ec670e1f2c517d7d9a2a94d447bd5daa0a9384ebd4e7e/wallets
const response = connection.NFTExchangeApi("auctions").getAuctionsWallets("VALID_ID");
>>> Promise<ApiResponse<AuctionsWallet>>

Search Auctions

Examples

Curl
Typescript
curl --request POST \
--url https://explorer.protokol.sh/api/nft/exchange/auctions/search \
--header 'content-type: application/json' \
--data '{
"nftIds": ["238d98bd751025decc853a46da8fb995c68a9684a4156bcfa414e7596b6e73b1"]
}'
const response = connection.NFTExchangeApi("auctions").searchByAsset({
nftIds: ["VALID_NFT_IDS"],
senderPublicKey: "VALID_SENDER_PUBLIC_KEY",
startAmount: "START_AMOUNT",
expiration: {
blockHeight: BLOCK_HEIGHT,
},
});
>>> Promise<ApiResponseWithPagination<AuctionsResource[]>>

Canceled Auctions

get
https://explorer.protokol.sh/api/nft/exchange/auctions/canceled
/auctions/canceled

Examples

Curl
Typescript
curl https://explorer.protokol.sh/api/nft/exchange/auctions/canceled
const response = connection.NFTExchangeApi("auctions").getAllCanceledAuctions();
>>> Promise<ApiResponseWithPagination<AuctionCanceled[]>>

Canceled Auctions By Id

get
https://explorer.protokol.sh/api/nft/exchange/auctions/canceled/:id
/auctions/canceled/:id

Examples

Curl
Typescript
curl https://explorer.protokol.sh/api/nft/exchange/auctions/canceled/3c26dee62a937aaf49c25e64d2776117362e9dc30dd6f27c839081d1e44608bc
const response = connection.NFTExchangeApi("auctions").getCanceledAuctionById("VALID_ID");
>>> Promise<ApiResponse<AuctionCanceled>>