Opensea

FREEMIUM
Por OpenSea Tools | Atualizado 2 mesi fa | Data
Popularidade

9.5 / 10

Latência

827ms

Nível de serviço

100%

Health Check

N/A

Voltar para todas as discussões

about create listing order for Blur

Rapid account: Virgocx
virgocx
2 anni fa

hi Team

I have tried to create listing format using Blur API, and the response shows that the call is successful, but I can not find any change on the website page, can you help to check whether it works? below is the returned information, thanks a lot:

{
“success”: true,
“approvals”: [],
“signatures”: [
{
“type”: “signTypedData_v4”,
“signData”: {
“domain”: {
“name”: “Blur Exchange”,
“version”: “1.0”,
“chainId”: 1,
“verifyingContract”: “0x000000000000Ad05Ccc4F10045630fb830B95127”
},
“types”: {
“Order”: [
{
“name”: “trader”,
“type”: “address”
},
{
“name”: “side”,
“type”: “uint8”
},
{
“name”: “matchingPolicy”,
“type”: “address”
},
{
“name”: “collection”,
“type”: “address”
},
{
“name”: “tokenId”,
“type”: “uint256”
},
{
“name”: “amount”,
“type”: “uint256”
},
{
“name”: “paymentToken”,
“type”: “address”
},
{
“name”: “price”,
“type”: “uint256”
},
{
“name”: “listingTime”,
“type”: “uint256”
},
{
“name”: “expirationTime”,
“type”: “uint256”
},
{
“name”: “fees”,
“type”: “Fee[]”
},
{
“name”: “salt”,
“type”: “uint256”
},
{
“name”: “extraParams”,
“type”: “bytes”
},
{
“name”: “nonce”,
“type”: “uint256”
}
],
“Fee”: [
{
“name”: “rate”,
“type”: “uint16”
},
{
“name”: “recipient”,
“type”: “address”
}
]
},
“value”: {
“trader”: “0xb626d0146861411ad472ff2e4d92422d07430c57”,
“side”: 1,
“matchingPolicy”: “0x00000000006411739DA1c40B106F8511de5D1FAC”,
“collection”: “0x08dfdbb07f013856d0d18592d20185d64c9c4ef0”,
“tokenId”: “2540”,
“amount”: “1”,
“paymentToken”: “0x0000000000000000000000000000000000000000”,
“price”: “3900000000000000”,
“listingTime”: 1668391837,
“expirationTime”: 1668433761,
“fees”: [],
“salt”: “0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007092e6a5ecc3ea5e78fd4b6d29f3d733”,
“extraParams”: “0x”,
“nonce”: “0”,
“signatureVersion”: 0
}
},
“marketplace”: “BLUR”,
“marketplaceData”: “[“fiXiPWYxOn2jCFLTTg3dScYBG9gz0iJwvAznAw9Mk7avrtCefdPpMNaQ8l2XkCb1V9hO03ycAFr+fn28GO6JVqDPM+WGtsF2z28glHhgDJ/JwXMJLSMaa7aIMTKHWgZs2MeNhn+dSGpgywUiytTkclkgngmMSvPhUU14eh44eePxbMGCZ3UWCX1xqQj7wqsE+S8p9KJABmkQlgn/Zd8oGAzMv9TDuFOsrnfb9tR/MNQPgcWTEkdKoQdq5Vv3F3sK3P7Vt5GJOYfvvvJbwr6IsNrEhq+Q2eToaxmetoptePIQVNSqqv1EJ7s+91KgpcN83AU8AyuKLCU36Kdhdyc/HtvVtS8Ymi+cfsKWwjou1fzqeo1uADJTjY5ujJYZ/efU+Tp4SK5nQxPvWXS9hq8nW2DDv1C+Cz+JOCmOUVLweEJylZICTzS0Rox2BLrO+VVMrwTnxwUbw3xWRaRTcVPkfbhQeKW/4d2xkgwzLsTGZ/Nwd/SS6w/MaEkXjWXJcj6w2mZ/GO3A0WM7loZo+u3d5gTs2pRO9Rm2KYCLy7UnVYWYu4q18u/a80mN/58ViG8VwLyZPJGejnJZ6D26oO2xnYG6/iZDHhaO9TV+FxCyNhymGil7ykX1OWTb3SyT3KVAEFjwTs7pfYnfzxIkE547V1NgVq5j4PS1ibUFoesQXNdeW9Txk0YkWSPiiSKsiSvqgH/fiSOVIOv9ciOMethXPHsqXnhGhcgSD9UPdg==”,“H/H6UKdH1ZeCSe6cy/SEkQ==”,“fxTtRxYml3fETkLaGdrDyA==”]”,
“tokens”: [
{
“contractAddress”: “0x08dfdbb07f013856d0d18592d20185d64c9c4ef0”,
“tokenId”: “2540”
}
]
}
]
}

Rapid account: Virgocx
virgocx Commented 2 anni fa

I try to generate the signature using “signData” by myself, the orginal “signData” does not work, I adjust the format as below and generate the signature, then the listing order can be created successfully, so maybe you can adjust the output format of “signData” or you can teach me how to sign the “marketplaceData”, thanks.

{
“types”:
{
“EIP712Domain”:
[
{
“name”: “name”,
“type”: “string”
},
{
“name”: “version”,
“type”: “string”
},
{
“name”: “chainId”,
“type”: “uint256”
},
{
“name”: “verifyingContract”,
“type”: “address”
}
],
“OrderComponents”:
[
{
“name”: “offerer”,
“type”: “address”
},
{
“name”: “zone”,
“type”: “address”
},
{
“name”: “offer”,
“type”: “OfferItem[]”
},
{
“name”: “consideration”,
“type”: “ConsiderationItem[]”
},
{
“name”: “orderType”,
“type”: “uint8”
},
{
“name”: “startTime”,
“type”: “uint256”
},
{
“name”: “endTime”,
“type”: “uint256”
},
{
“name”: “zoneHash”,
“type”: “bytes32”
},
{
“name”: “salt”,
“type”: “uint256”
},
{
“name”: “conduitKey”,
“type”: “bytes32”
},
{
“name”: “counter”,
“type”: “uint256”
}
],
“OfferItem”:
[
{
“name”: “itemType”,
“type”: “uint8”
},
{
“name”: “token”,
“type”: “address”
},
{
“name”: “identifierOrCriteria”,
“type”: “uint256”
},
{
“name”: “startAmount”,
“type”: “uint256”
},
{
“name”: “endAmount”,
“type”: “uint256”
}
],
“ConsiderationItem”:
[
{
“name”: “itemType”,
“type”: “uint8”
},
{
“name”: “token”,
“type”: “address”
},
{
“name”: “identifierOrCriteria”,
“type”: “uint256”
},
{
“name”: “startAmount”,
“type”: “uint256”
},
{
“name”: “endAmount”,
“type”: “uint256”
},
{
“name”: “recipient”,
“type”: “address”
}
]
},
“primaryType”: “OrderComponents”,
“domain”:
{
“name”: “Seaport”,
“version”: “1.1”,
“chainId”: “1”,
“verifyingContract”: “0x00000000006c3852cbEf3e08E8dF289169EdE581”
},
“message”:
{
“offerer”: “0xc7fBe1fCc453EABa11451c00c029c61A6a32868C”,
“offer”:
[
{
“itemType”: “1”,
“token”: “0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2”,
“identifierOrCriteria”: “0”,
“startAmount”: “5000000000000000”,
“endAmount”: “5000000000000000”
}
],
“consideration”:
[
{
“itemType”: “4”,
“token”: “0x08dFdbb07f013856D0d18592D20185d64C9c4EF0”,
“identifierOrCriteria”: “15962069002074893677134206817355421575622171062058788949493405288853126625902”,
“startAmount”: “1”,
“endAmount”: “1”,
“recipient”: “0xc7fBe1fCc453EABa11451c00c029c61A6a32868C”
},
{
“itemType”: “1”,
“token”: “0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2”,
“identifierOrCriteria”: “0”,
“startAmount”: “125000000000000”,
“endAmount”: “125000000000000”,
“recipient”: “0x0000a26b00c1F0DF003000390027140000fAa719”
},
{
“itemType”: “1”,
“token”: “0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2”,
“identifierOrCriteria”: “0”,
“startAmount”: “250000000000000”,
“endAmount”: “250000000000000”,
“recipient”: “0xF8769bCd58099aFa41E58Ff060BCD2cA664387F5”
}
],
“startTime”: “1664336732”,
“endTime”: “1664375692”,
“orderType”: “2”,
“zone”: “0x004C00500000aD104D7DBd00e3ae0A5C00560C00”,
“zoneHash”: “0x0000000000000000000000000000000000000000000000000000000000000000”,
“salt”: “24446860302761739304752683030156737591518664810215442929800393962800121387613”,
“conduitKey”: “0x0000007b02230091a7ed01230072f7006a004d60a8d4e71d599b8104250f0000”,
“totalOriginalConsiderationItems”: “3”,
“counter”: “0”
}
}

Rapid account: Virgocx
virgocx Commented 2 anni fa

I try to sing the marketplaceData like as below,

const signature = await ethersSigner.signMessage(response.data.marketplaceData);

but the result shows
{
“statusCode”: 400,
“message”: “Invalid signature”,
“error”: “Bad Request”
}

can you help to check it? thanks

Rapid account: Virgocx
virgocx Commented 2 anni fa

hi team,

how can I sign the marketplaceData? like as below :
const signature = await ethersSigner.signMessage(response.data.marketplaceData);

Rapid account: Openseatools
openseatools Commented 2 anni fa

Hey I have just added a new endpoint called “Create order” , you take the output of the “Create listing format” and generate a signature by signing the “marketplaceData”.

Example payload to “Create order” endpoint
{
“signature”: “0x5070bdbd8e5b43838c3f7850a6fe16ca24b35d6e1d5af506be66ce72f3802add51d257acde0ae43b90f3bfab48668621e77b6746175e43f9c266c89f”,
“marketplace”: “BLUR”,
“marketplaceData”: “[“EZ5FLywGTBcv/5VxN92fqDvQ6avHhva8koH3MyqJGrDgdkG/RnJKf+2l2I3vMMiQCTq2tqFPkIqYAhiXqGMQm86DxhD2Xwmxlyy46kzWGj0+GF6Y/lCJI9D+9S01inAmcfCIqcIlwMTyXKdq5CWMteC54tk/oajjc8qKVMXyOYrTOW9dVldqUyHZrpa/Otr3KSApEfQedvs7B9vh2IpBHrVzdZgocp6axmtGEqSpJHysze3dtmhhAW8h2ZBab5ZR6L+xtltrpXNSWXjoK2zshf84BRPfzTczeP5Az9UJPh73Yq3otwD7+E8hMnK/AU5dWThaNtmbdj5ZFj4+xaSNQUI3XLrJiTcL7+BSc5vLlfuo/YDXA0k+76thQnFObaYaFA/CeXmN2/l8txGqD7fqI3+xPzLcc8QQEFLwMpd/odLdCPS5VRvQ7pru+Pr4LN3qYuGLNEyy6minY86yYB/jm/iT7jrvGSXDzxSTPN6nWp6una3avQvLyyziyTr2T8ZczxsANB+tfRbXc5fIwLBsd0xy6JjffR69B7lSNxlUVl8Wy/d/ako2qxc2xpGzwdShSzMX5eF5X0D+0RfGHvZWas0O/pteT15jojmxR9WOXKV1bwsRSOwdey/dHwnwLHSx0WFSMhcvG2Zdflc12e/UzKHNLxd2oXC5Tgsogujg2mZ9OqyzrxRrLT6lMONoqUDwioIOeaL7nPf52C8/ls8iW7qu4RqFo6U=”,“HZnHhReLoNXt3Elh9TCI5w==”,“f+YhRgyZGno/oV8oBjkmLg==”]”
}

Junte-se à discussão - adicione o comentário abaixo:

Efetue login / inscreva-se para postar novos comentários