Skip to main content
Version: 0.5

Cancel an NFT previously listed for Sale

Cancel an already listed NFT for sale on the Aventus network.

This page is kept simple to show the function signature and how it can be used. To understand the various variable names and their constraints, HERE is an explainer. For a further deep-dive into how the Aventus Network supports NFTs, check this out.

await api.send.cancelFiatNftListing(avnRelayerAddress, nftId);

This operation uses a relayer account that the sender authorizes to submit the transfer transaction.
Contact us here to request a relayer address.


const AvnApi = require("avn-api");
const GATEWAY = "<endpoint_url>"; //Replace the endpoint_url with the url received from Aventus.
const api = new AvnApi(GATEWAY);

const avnRelayerAddress = "5Fb...yTh"; //Please, request from Aventus.
const nftId =
"0xcd59127245d3ae2706e4f3bace05de3fd16c50bb6b844d3f422b283a3b5f72f6"; // replace with the nftID of the NFT you're trying to list.

async function main() {
await api.init();

const result = await api.send.cancelFiatNftListing(
// Returns a request id

(async () => {
await main();

You have now successfully submitted a transaction to the AVN to cancel your NFT.

Example Output



Cancels a listing for an NFT as open for sale in fiat


HEADERS Content-Type: application/json Authorization': bearer <awtToken>

REQUEST PARAMS relayer [required] - a string representing the relayer's SS58 address
signer [required] - a string representing the sender's SS58 address
nftId [required] - a string representing the NFT ID (32 bytes) to check for nonce
proxySignature [required] - a proof signed by the sender/signer account allowing the transaction to be proxied
feePaymentSignature [required] - a proof signed by the sender/signer account allowing the relayer fees to be paid
paymentNonce [required] - string integer value of the current account payment nonce


curl https://AVN-API-URL/send \
-H "Content-Type: application/json" \
-H "Authorization: bearer <awtToken>" \
-d '{"jsonrpc":"2.0", "method":"proxyCancelListFiatNft", "params":{"relayer":"5FbUQ2kJWLoqHuSTSNNqBwKwdQnBVe4HF3TeGyu6UoZaryTh", "signer":"5DAgxVxKmnJ7hfhDEB9UetZm4jR2MPjGZGrmJZjirSVJDdMr", "nftId":"0x899697fff9eccfb4de41ad689334751f28a7b5c026e9cf23c4e8ddecb11dcf35", "proxySignature":"0x7e8fb895d9c33fbfd2b0122a586d2d29a6c606ee2ca485c8eb69163be8ef7a6ddd2a52e6802f40720e192d4ca407d657cdfa703a8ce502e9c4f0feedfc3e5e8b", "feePaymentSignature":"0xaae7983775fc1a5bc04b500af156dcba343f1d305549737821b7e31a12f6ce430941856c1259d520759548281afd465b3d66b7e48e72fc2c8c0a3a5bb9f8fa87", "paymentNonce":"209"}, "id":1}'

result 👇🏽 - a request ID that can be queried for the transaction's status

Example Result

{ "jsonrpc": "2.0", "id": 1, "result": "b043df72-5636-49a6-999c-aad1fa574bc5" }


You can check the status of your transaction here using the returned request id.