tatumio / smart-contracts Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
delete it
Creating listings seems to be randomly failing since the past few days
https://polygonscan.com/address/0x66592ad3fbd87b8631e40143b2f6671a9dd73283
Any ideas what could be causing this issue?
I can see the "value" column randomly switched from 0 MATIC to 1 MATIC for some unknown reason.
๐ป Environment
Production - Tatum marketplace APIs
๐ Details
Creating listings seems to be failing https://polygonscan.com/address/0x66592ad3fbd87b8631e40143b2f6671a9dd73283
Any ideas what could be causing this issue?
I can see the "value" column randomly switched from 0 MATIC to 1 MATIC for some unknown reason.
In order to solve the above issue, I created a new marketplace and transactions started going through, but with a warning that execution failed somewhere -
https://polygonscan.com/address/0x1a33b3e3a6a90d86c62516197fc6784aa30f1b0d
Over here, Creating a listing and sending the NFT to the marketplace works fine, but when i hit the cancel listing API, the NFT is not returned to the original wallet again
๐ข Code to reproduce bug
Create Listing -
curl --request POST \
--url https://api-eu1.tatum.io/v3/blockchain/marketplace/listing/sell \
--header 'content-type: application/json' \
--header 'x-api-key: REPLACE_KEY_VALUE' \
--data '{"chain":"MATIC","contractAddress":"0x66592ad3fbd87b8631e40143b2f6671a9dd73283","nftAddress":"0x8c0d8685afeaf558f271fd78e75e647f6357869b","seller":"0xb179603336B7580F0f845b1366D0c20A00995779","listingId":"listing3694648298","amount":"1","tokenId":"21668006","price":"1","isErc721":true,"fromPrivateKey":"###","fee":{"gasLimit":"350000","gasPrice":"50"}}'
Send NFT to marketplace -
curl --request POST \
--url https://api-eu1.tatum.io/v3/nft/transaction \
--header 'content-type: application/json' \
--header 'x-api-key: ###' \
--data '{"chain":"MATIC","to":"0x66592ad3fbd87b8631e40143b2f6671a9dd73283","tokenId":"21668006","contractAddress":"0x8c0d8685afeaf558f271fd78e75e647f6357869b","tokenPrice":"1","fromPrivateKey":"###","fee":{"gasLimit":"40000","gasPrice":"40"}}'
Cancel NFT listing -
curl --request POST \
--url https://api-eu1.tatum.io/v3/blockchain/marketplace/listing/cancel \
--header 'content-type: application/json' \
--header 'x-api-key: ###' \
--data '{"chain":"MATIC","contractAddress":"0x66592ad3fbd87b8631e40143b2f6671a9dd73283","listingId":"listing3694648298","fromPrivateKey":"###"}'
Let me know if you'd like me to provide any other details!
After i switched over to a new marketplace contract, creating a listing and sending it to the marketplace worked fine (even though all transactions show a warning). If I can just get the cancel API to return the user's NFT when it's called, that should resolve all my issues.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.