getListing
The following set of functions will be used to fulfill orders on your marketplace
Getting an order
Getting an order to fulfill
import NiftySDK from 'nifty-protocol';
const niftySDK = new NiftySDK({ key: 'key', env: Nifty.envs.TESTNET });
niftySDK.getListing(orderId, isExternalOrder)
.then(async (res) => {console.log(res)})Options
All params are required
Param
Value / Explanation
Type
orderId
an orderId for the token scheme
UUID
isExternalOrder
external orders can be from looksrare / opensea / rarible
bool
Response
{
"price": Number,
"id": String,
"chainId": String,
"senderAddress": String,
"makerAddress": String,
"takerAddress": String,
"makerAssetData": String,
"takerAssetData": String,
"exchangeAddress": String,
"feeRecipientAddress": String,
"expirationTimeSeconds": String,
"makerFee": String,
"takerFee": String,
"makerAssetAmount": String,
"takerAssetAmount": String,
"salt": String,
"signature": String,
"makerFeeAssetData": String,
"takerFeeAssetData": String,
"recipientAddress": String,
"orderHash": String,
"state": String,
"type": String,
"createdAt": String,
"updatedAt": String,
}
Last updated