Sell an asset at the NFT auction

/v3/blockchain/auction/sell

2 credits per API call

Create new auction on the auction contract. Before operation, seller must approve spending of the NFT token for the Auction contract using Approve NFT. After auction is created, auction contract transfers the asset to the auction smart contract. Only auction for existing NFTs can be created - seller must be owner of the NFT asset.

This API is supported for the following blockchains:

  • BNB Smart Chain
  • Celo
  • Ethereum
  • Harmony
  • Klaytn
  • Polygon

A known issue on Harmony
On Harmony, when you are viewing a transaction in the Harmony Blockchain Explorer, the transaction status may be displayed as the following:
Error reverted:x0
This is a known issue with the Harmony Blockchain Explorer. This status does not mean that the transaction failed. You can safely ignore it.

Signing a transaction
When selling an asset at the NFT auction, you are charged a fee for the transaction, and you must sign the transaction with the private key of the blockchain address from which the fee will be deducted.

Providing the private key in the API is not a secure way of signing transactions, because the private key can be stolen or exposed. Your private keys should never leave your security perimeter. You should use the private keys only for testing a solution you are building on the testnet of a blockchain.

For signing transactions on the mainnet, we strongly recommend that you use the Tatum Key Management System (KMS) and provide the signature ID instead of the private key in the API. Alternatively, you can use the Tatum JavaScript client.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
enum
required

Blockchain to work with.

Allowed:
string
required
length between 42 and 42

Address of the auction smart contract.

string
required
length between 42 and 42

Address of the NFT asset to sell smart contract.

string
required
length between 42 and 42

Address of the seller of the NFT asset.

string
length between 42 and 42

Optional address of the ERC20 token, which will be used as a selling currency of the NFT.

string
required
length between 1 and 200

ID of the auction. It's up to the developer to generate unique ID

string

Amount of the assets to be sent. For ERC-721 tokens, enter 1.

string
required
length ≤ 256

ID of token, if transaction is for ERC-721 or ERC-1155.

number
required
≥ 0

Last block, where auction accepts bids.

boolean
required

True if asset is NFT of type ERC721, false if ERC1155.

string
required
length between 66 and 66

Private key of sender address. Private key, or signature Id must be present.

number

The nonce to be set to the transaction; if not present, the last known nonce will be used

fee
object

Custom defined fee. If not present, it will be calculated automatically.

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json