Trades
List of NFT Exchange Trade Endpoints
get
https://explorer.protokol.sh/api/nft/exchange/trades
/auctions
Curl
Typescript
curl https://explorer.protokol.sh/api/nft/exchange/trades
const response = connection.NFTExchangeApi("trades").all();
>>> Promise<ApiResponse<TradesResource>>
get
https://explorer.protokol.sh/api/nft/exchange/trades/:id
/trades/:id
Curl
Typescript
curl https://explorer.protokol.sh/api/nft/exchange/trade/1d1757bc7e598fd73f0ec670e1f2c517d7d9a2a94d447bd5daa0a9384ebd4e7e
const response = connection.NFTExchangeApi("trades").get("VALID_ID");
>>> Promise<ApiResponse<TradeById>>
post
https://explorer.protokol.sh/api/nft/exchange/trades/search
/auctions/search
Curl
Typescript
curl --request POST \
--url https://explorer.protokol.sh/api/nft/exchange/trades/search \
--header 'content-type: application/json' \
--data '{
"senderPublicKey": "03287bfebba4c7881a0509717e71b34b63f31e40021c321f89ae04f84be6d6ac37"
}'
const response = connection.NFTExchangeApi("trades").search({
auctionId: "VALID_AUCTION_ID",
bidId: "VALID_BID_ID",
senderPublicKey: "VALID_SENDER_PUBLIC_KEY",
});
>>> Promise<ApiResponseWithPagination<TradesResource[]>>
Last modified 1yr ago