Which API can I use to buy the NFT on Rarible with a static price? #52
-
Question Posted: 17 August 2021, in Discord
Hello there, can someone help me with which API I can buy the NFT on Rarible which is having a static price? I tried my hard to work around but I haven't found any luck CODE
ERROR:
I think something wrong with your headers. Request works fine
Thank you Sergey, also can you tell me what exactly amount is and how it's value is generated? Beacuase if you look closely I have never actually send the headers in POST request, hence the questions
I mean, that there is no content-type header in your final request.
this curl work fine in my terminal too. Or maybe I did not catch your question?
Oops, I see now...instead of Params I actually had to do json=.....
@Sergey Anufriev | Rarible.com once pass this step of bidding on an NFT having a fixed price which API should be used to finally buy that NFT, which I suppose according to docs be a matching order i.e. left order and right order with signature
Usual and simple work flow
When you say web3 client, do you mean something like metamask to sign?
@jay Rank did it work for you? If so, could you share your code please?
About creating a bid or a full buy of NFT?? Because I tried to send then using createOrderPendingTransaction API to see if my NFT ownership is swapped by paying crypto worth of fixed price, but it didn't.
but i ended up gettng this as output , every damn time.
You can't buy an NFT using API. to do this use ethereum wallet (metamask or other) Also, it's highly encouraged to use SDK for such operations. We tried to abstract blockchain and contract complexity there. So you can just invoke something like sell or buy and SDK will do the work (calling wallet to send transaction, sign messages etc) Currently due to an error in configuration, https://ropsten.rarible.com/ and https://rinkeby.rarible.com/ point to the mainnet Pls, use https://rinkeby-staging.rarible.com/ and https://ropsten-staging.rarible.com/ |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Since we need to group and filter the discussions page, I'll be adding this reply as an answer since these kinds of threads(from discord) won't have activity any time soon. |
Beta Was this translation helpful? Give feedback.
Since we need to group and filter the discussions page, I'll be adding this reply as an answer since these kinds of threads(from discord) won't have activity any time soon.