Multi-chain NFT Swap by 0x

Demo to preview the settings

Introduction

Swapping with the Swap SDK just got even better. With the new integration of 0x v4, NFT trades that use the Swap SDK are the cheapest and most efficient swaps available on Ethereum. Leverage the updated Swap SDK to ensure your users have the lowest possible gas fees anywhere. 0x v4 NFT is available on Ethereum Mainnet, Polygon, Optimism, BSC, Fantom, and Celo, and Ropsten Testnet.
Whether you're building a wallet, an NFT marketplace, or a peer-to-peer swap application, Swap SDK makes integrating NFT swap functionality easy and lightweight. Just add your UI! Whether you prefer on-chain or off-chain orders, 0x v4 is the cheapest and most efficient way to swap NFTs to date. This plugin is designed for creating P2P NFT trading features. Using this, users can sell their NFT to other users in exchange for crypto tokens. In order to test this plugin you need 2 Metamask wallets.
Image without caption
Based on recent gas benchmarks, 0x v4 is significantly cheaper to fill orders.
  • 40% cheaper than OpenSea, LooksRare, and Rarible for buying NFTs
  • 35% cheaper than Zora to fill (>60% cheaper than Zora if including both parties' gas fees).
NFT buys and sells (bids and asks) are both supported
Image without caption

How to setup

Plugin Element Proprieties

Image without caption
Build Order response - set this field with the data type "Building Orders”
Image without caption

Element Actions Build an Order

Image without caption
Name
Description
Type
NFT Contract address
The contract address can be found on the home page of the NFT collection or next to a particular NFTs token ID and other metadata.
Text
NFT Token ID
To find the contract address and token ID for your NFT, visit the web page of your NFT and view the URL. EX:https://rarible.com/token/polygon/0x35f8aee672cde8e5fd09c93d2bfe4ff5a9cf0756:55972062621518944670013325496150839034431497274339836230186769958266952744993 0x35f8aee672cde8e5fd09c93d2bfe4ff5a9cf0756 — NFT Contract address. 55972062621518944670013325496150839034431497274339836230186769958266952744993 — NFT Token ID
Text
NFT Standard Type
Must be one of 'ERC20', 'ERC721', or 'ERC1155’
Text
Token Contract Address
0x v4 contracts with NFT support are currently live on Ethereum Mainnet, Polygon, Optimism, BSC, Fantom, and Celo, and Ropsten Testnet.
Text
Token Amount
A certain amount of a token
Text
Token Standard Type
Only ERC20
Text
Expiration date
Set how long the "signed order" should be valid
Number

Filling an Order

Now that we have a signed order, another wallet can fill that order (known as 'taking' the trade). To fill orders, pass the signed order to action the Filling an Order. If the transaction succeeds, the trade went through, and the user can be notified.
Image without caption
Name
Description
Type
Signed Order
In action "Build an Order" order that was added to the blockchain, NFTs was “signed” by the uploader in a process known as “minting" and was returned to a state "Signed Order", This must be given to the buyer so that he can buy NFT.
Text
GAS
A gas fee is a blockchain transaction fee, paid to network validators for their services to the blockchain. It is necessary to set Gas for the transaction to go through successfully.
Text

Canceling Orders

Order cancelation
Image without caption
Name
Description
Type
Order Nonce
A nonce is a random or semi-random number that is generated and returned to "Build an Order”
Text
Order Type
At creation, the "order" was returned in the state "type”
Text

Fetch Order

To fetch order(s) from the orderbook.
Name
Description
Type
Order Nonce
A nonce is a random or semi-random number that is generated and returned to "Build an Order”
Text

Exposed states

Name
Description
Type
Build Order
information about the "Order" created.
as build order
Sign Order
is the contract signed by the seller with information about the NFT and the asking price?
Text
Canceling Orders
It will show if the postponement of the order was successful.
yes/no
Error
If the plugin throw error, it will publish here.
Text

Changelogs