Rarible Protocol
Published in

Rarible Protocol

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

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

--

--

--

Rarible Protocol is the leading open source and multichain NFT protocol.

Recommended from Medium

Promises: The Definitive Guide

Create a Chrome Extension to Manage Other Extensions

Get Remove them ORMs from your Projects.

How to create an Angular sign up form using JSON server.

Removing Parameters in Allure Reports

LocusMaps Online Intro

Generate TypeScript Declaration Files for JavaScript Files

The JavaScript logo with an arrow pointing towards the TypeScript logo

Flutter Sidebar With Animated Indicator Using Vertical Tabs

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Szymon Kolber

Szymon Kolber

Developing everything in every possible language. IT is more about improvising anyway 🏴‍☠️

More from Medium

Integrating the Multicall contract into your ReactJS Dapp

NFT-Based Luxury Watch Certificate: Explaining the IPFS JSON Web Service

Understanding NFT Encryption using Merkle Trees

How to set up webhook notifications on Solana