Create an offer -> Invalid order signature #643
-
Hi, I am trying to use the https://api.opensea.io/v2/orders/ethereum/seaport/offers endpoint to create an offer. 3 parameters need to be fulfilled:
However I get the error: I am a bit clueless on why my signature is invalid? My Python code to generate the signature:
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 7 replies
-
Additionally: I signed the message below using etherscan: I generate the signature on https://etherscan.io/verifiedSignatures#. I than used the generated signature to test using the browser, still not working: This generated the following Python code: url = "https://api.opensea.io/v2/orders/ethereum/seaport/offers" payload = { response = requests.post(url, json=payload, headers=headers) print(response.text)` |
Beta Was this translation helpful? Give feedback.
-
i am getting the same error message when doing listing |
Beta Was this translation helpful? Give feedback.
-
You have to sign the order using EIP-712 |
Beta Was this translation helpful? Give feedback.
-
Hi everyone! Was having the same problem trying to produce a valid EIP-712 signature to create a new listing in python. My issue was that I was using old eth libs. do this:
and if you see anything with "web3" or "eth" in its name - you need to update your libs to the latest versions. I had to remove brownie and eip712 due to version conflicts. This is what mine looks like in the end (with the dict pretty-printed and pasted in. You can figure out how to make that dict yourself. I'm listing a Mori Mori (contract
|
Beta Was this translation helpful? Give feedback.
Hi everyone!
Was having the same problem trying to produce a valid EIP-712 signature to create a new listing in python.
My issue was that I was using old eth libs.
encode_structured_data
is bugged in older versions (in particular with arrays).do this:
pip list --outdated
and if you see anything with "web3" or "eth" in its name - you need to update your libs to the latest versions. I had to remove brownie and eip712 due to version conflicts.
This is what mine looks like in the end (with the dict pretty-printed and pasted in. You can figure out how to make that dict yourself.
I'm listing a Mori Mori (contract
0x85203d271c09ea3d76688753B6f616aEF1e09B12
token id248
erc-721) for 0.1 ETH