You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, i'm trying to buy an NFT through fulfillBasicOrder, but I'm having trouble figuring out 1) what fulfillment data we need, 2) how to get that fulfillment data from OpenSea.
Is there any sample code for how to use fulfillBasic Order?
Does this look like it would work?
Order details
route = 'ETH_TO_ERC721' # Basic route to fulfill ERC721 order
order = {
'offer': {
'token': 'ERC721', # Offer item is ERC721
'tokenId': 'YOUR_TOKEN_ID', # ERC721 token ID you want to buy
'amount': 1 # Amount of ERC721 token to buy
},
'buy': {
'type': 'ETH', # Consideration item is Ether
'amount': 'YOUR_CONSIDERATION_AMOUNT' # Amount of Ether to pay for the NFT
},
'seller': '0xSELLER_ADDRESS' # Seller's wallet address
}
But when I try to use the sample payload on the page
"{
"listing": {
"hash": "0x6ba3577b78869b26210550176d7376577a1e2b10d76add5a8d022df9dc2f6429",
"chain": "ethereum",
"protocol_address": "0x00000000000001ad428e4906aE43D8F9852d0dD6"
},
"fulfiller": {
"address": "0xD77F375A33b1109e82f3C46A30537F1E019708eB"
}
}"
the payload gets all mucked up
"payload = {
"listing": ""listing": {
"hash": "0x6ba3577b78869b26210550176d7376577a1e2b10d76add5a8d022df9dc2f6429",
"chain": "ethereum",
"protocol_address": "0x00000000000001ad428e4906aE43D8F9852d0dD6"
",
"fulfiller": " "fulfiller": {
"address": "0xD77F375A33b1109e82f3C46A30537F1E019708eB"
"
}
he"
And the response is
"{
"errors": [
{
"listing": [
"value is not a valid dict"
],
"fulfiller": [
"value is not a valid dict"
]
}
]
}"
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi there, i'm trying to buy an NFT through fulfillBasicOrder, but I'm having trouble figuring out 1) what fulfillment data we need, 2) how to get that fulfillment data from OpenSea.
Does this look like it would work?
Order details
route = 'ETH_TO_ERC721' # Basic route to fulfill ERC721 order
order = {
'offer': {
'token': 'ERC721', # Offer item is ERC721
'tokenId': 'YOUR_TOKEN_ID', # ERC721 token ID you want to buy
'amount': 1 # Amount of ERC721 token to buy
},
'buy': {
'type': 'ETH', # Consideration item is Ether
'amount': 'YOUR_CONSIDERATION_AMOUNT' # Amount of Ether to pay for the NFT
},
'seller': '0xSELLER_ADDRESS' # Seller's wallet address
}
listing ____
listing to fulfill
fulfiller ____
fulfilling wallet address
But when I try to use the sample payload on the page
"{
"listing": {
"hash": "0x6ba3577b78869b26210550176d7376577a1e2b10d76add5a8d022df9dc2f6429",
"chain": "ethereum",
"protocol_address": "0x00000000000001ad428e4906aE43D8F9852d0dD6"
},
"fulfiller": {
"address": "0xD77F375A33b1109e82f3C46A30537F1E019708eB"
}
}"
the payload gets all mucked up
"payload = {
"listing": ""listing": {
"hash": "0x6ba3577b78869b26210550176d7376577a1e2b10d76add5a8d022df9dc2f6429",
"chain": "ethereum",
"protocol_address": "0x00000000000001ad428e4906aE43D8F9852d0dD6"
",
"fulfiller": " "fulfiller": {
"address": "0xD77F375A33b1109e82f3C46A30537F1E019708eB"
"
}
he"
And the response is
"{
"errors": [
{
"listing": [
"value is not a valid dict"
],
"fulfiller": [
"value is not a valid dict"
]
}
]
}"
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions