3 useful NFT functionalities you can implement with Rarible SDK, in one line

Simon Colby
Rarible Protocol
Published in
3 min readDec 23, 2021
Rarible SDK experience

Right now, at Rarible Protocol DAO, we are working hard on improving the documentation 🏋️‍♀️. We’re doing some pretty cool things which will allow you, developers, to build your NFT-related ideas fast and risk-free!

Ladies and gents, let me introduce you to the Rarible SDK, a set of development tools that will let you mint an NFT in no more than 7 lines of code, allowing you to work on quite a few different blockchains (have you heard that Rarible now fully supports Tezos, and is working on upcoming support for Polygon, Solana and even more chains in the near future?).

SDK Goals

With the SDK, our biggest goal is to facilitate the complicated logic (blockchain-related solidity part, as well as some JS parts), allowing developers to work with NFTs in a quick and easy way. We have smart contracts which are tested and audited thoroughly, we have APIs which unlock new possibilities such as lazy minting, and we support different blockchains. If you want to build something fast, and don’t wanna spend months on research, you are in good hands. 🤝

3 Most useful functionalities of the Rarible SDK

  1. Lazy Minting & List Token for Sale

With the Rarible SDK, you can lazy mint an NFT and list it for sale using one function (and a little preparation):

1st step — create prepare mint request
2nd step — prepare the currency you want to get in return
3rd step — prepare a mint response and submit it to the blockchain

That’s it! From the response object, you can get additional info about transaction status, transaction addresses, etc.

2. Get NFTs owned by a wallet address

Want to list all the NFTs that the connected user owns? It’s never been easier!

Getting items owned by user

3. Transferring token to another wallet address

Did you just buy an NFT for your brother’s birthday? 🥳 Obviously you don’t want to charge him for that! You just want to casually transfer it to his wallet address, so he can enjoy his present.

1st step — create prepare transfer request object
2nd step — get transfer response
3rd step — submit a transaction

Summing it up

As you can see, Rarible SDK is pretty good when it comes to speeding things up on NFT-related development. We’ve updated the documentation section on our website, so you can find all the additional information there.

Happy coding 👨🏻‍💻

BTW, here you can find the code I’ve used to write the documentation, so you can get “inspired” 😉 (Ctrl + C, Ctrl + V).

https://github.com/kolberszymon/rarible-docs-example/tree/main/src

--

--

Simon Colby
Rarible Protocol

Blockchain, crypto, full-stack. Make the world decentralised again 🌎