Mainnet or testnet, but if I connect with a non-owner wallet, fulfillorders returns the following error
opensea_fulfillOrder result.
- code: 141
- error: βsocket hang upβ
payload
-
network: βtestnetβ
-
order: {hash: β0x21c4e4ee24ebda5e6b2e6fda817aa50e2f46b0414e5783eee083e65b3ac1fa38β,β¦}
-
asset: {tokenId: β3β, tokenAddress: β0xfd76d290aef0ac92b6bb9fe229396e1b9670f5bcβ,β¦}
-
basePrice: β111100000000000000β
-
calldata: β0xfb16a595000000000000000000000000412f55dfe3b77c9820b72c3ab78ed2f8552137570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fd76d290aef0ac92b6bb9fe229396e1b9670f5bc0000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000000β
-
cancelledOrFinalized: false
-
createdTime: β1651432517β
-
currentBounty: β1111000000000000β
-
currentPrice: β111100000000000000β
-
exchange: β0xdd54d660178b28f6033a953b0e55073cfa7e3744β
-
expirationTime: β1654110889β
-
extra: β0β
-
feeMethod: 1
-
feeRecipient: β0x5b3256965e7c3cf26e11fcaf296dfc8807c01073β
-
feeRecipientAccount: {user: 3282, profile_img_url: βhttps://storage.googleapis.com/opensea-static/opensea-profile/28.pngβ,β¦}
-
hash: β0x21c4e4ee24ebda5e6b2e6fda817aa50e2f46b0414e5783eee083e65b3ac1fa38β
-
howToCall: 1
-
listingTime: β1651432407β
-
maker: β0x412f55dfe3b77c9820b72c3ab78ed2f855213757β
-
makerAccount: {user: 36724, profile_img_url: βhttps://storage.googleapis.com/opensea-static/opensea-profile/4.pngβ,β¦}
-
makerProtocolFee: β0β
-
makerReferrerFee: β0β
-
makerRelayerFee: β250β
-
markedInvalid: false
-
metadata: {asset: {id: β3β, address: β0xfd76d290aef0ac92b6bb9fe229396e1b9670f5bcβ}, schema: βERC721β}
-
paymentToken: β0x0000000000000000000000000000000000000000β
-
paymentTokenContract: {name: null, symbol: βETHβ, decimals: 18, address: β0x0000000000000000000000000000000000000000β,β¦}
-
quantity: β1β
-
r: β0xf50b2ab447907f4a7f39f90ae57c66841f629473a68ff015aa7702f0e80ef691β
-
replacementPattern: β0x000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000β
-
s: β0x2c713e5573acaaddcb3269142b01d19bb9234c04dfbd49adcbdd1b4bfa0058eaβ
-
saleKind: 0
-
salt: β6.7587927507202172313313377240564083842926693211494124942760244632854723270039e+76β
-
side: 1
-
staticExtradata: β0xβ
-
staticTarget: β0x0000000000000000000000000000000000000000β
-
taker: β0x0000000000000000000000000000000000000000β
-
takerAccount: {user: 803, profile_img_url: βhttps://storage.googleapis.com/opensea-static/opensea-profile/1.pngβ,β¦}
-
takerProtocolFee: β0β
-
takerRelayerFee: β0β
-
target: β0x45b594792a5cdc008d0de1c1d69faa3d16b3ddc1β
-
v: 28
-
waitingForBestCounterOrder: false
-
userAddress: β0x5fd267c8ed0c299af4617bc203d11b9fb139d687β
-
_ApplicationId: β51PXU19jnsNBu6lNaJDYYczVYHVf2ondJKo4ScpKβ
-
_ClientVersion: βjs1.6.0β
-
_InstallationId: β162c489d-032d-4e00-900e-8e84c9f5adbfβ
-
_SessionToken: βr:a249f9345822319b267308135ad8a90aβ"
main.js code
async function order(network, tokenAddress, tokenId, tokenType, amount,
paymentTokenAddress) {
console.log(nftaddress);
orderlist = await Moralis.Plugins.opensea.getOrders({
network: network,
tokenAddress: tokenAddress,
tokenId: tokenId,
orderSide: 1,
page: 1, // pagination shows 20 orders each page
});
data = (orderlist.orders[0]);
console.log(data);
buy(network,data);
}
async function buy(network, orderfirst) {
console.log(nftaddress);
await Moralis.Plugins.opensea.fulfillOrder({
network: network,
userAddress: nftaddress,
order: orderfirst,
});
}
Blockquote
Please help where the error may be.
It would be nice to have a detailed opensea plugins tutorial about the fulfillorder
Many THX