Init List Nft Item on Marketplace

The client or user might be want to sell their Nft items. You can call this service to list your Nft items on marketplace.

This operation requires a signature of operation owner. You should trigger wallet provider (Metamask etc.) for complete this transaction/operation. You can follow Send Transaction tutorial to trigger the wallet provider or you can use QafNft Metamask Plugin to complete the all process.

Init List Nft Item on Marketplace

POST {{server-url}}/marketplace-items

It returns unsigned transaction data.

Headers

NameTypeDescription

Authorization*

String

UUID formatted access token

Content-Type*

String

application/json

PROJECT-ID*

String

UUID formatted projectId information

Request Body

NameTypeDescription

sellerAddress*

String

Represents wallet address of the seller.

price*

String

Represents Nft item's listing price. (You should send as decimal, NOT wei)

amount*

String

Represents count of Nft Item

nftItemId*

Number

Represents Nft Item's identifier

tokenSymbol*

String

Represents selling currency symbol. It can be any marketplace token, which you were added before

{
    // Response
}

Example Response Body

{
    "data": {
        "from": "0xf98e4Fe3C82Eabf0139AA55f7E602351E9297996",
        "to": "0x8cCFb76971d83C339c44e2d19952F4428e9B8021",
        "data": "0x52ae913200000000000000000000000000000000000000000000000000000000000001d2000000000000000000000000000000000000000000000000000000000000019a000000000000000000000000000000000000000000000000008e1bc9bf04000000000000000000000000000000000000000000000000000000000000000000050000000000000000000000008d24100cfc88e9c49a46a1d9d7d8e9ee314fde41000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000034554480000000000000000000000000000000000000000000000000000000000",
        "gasPrice": 20000000000,
        "chainId": 5777
    },
    "message": null,
    "code": 0,
    "error": false
}

Response Fields

KeyTypeDescription

from

String

Sender address

to

String

Receiver address (it will be contract address for our case)

data

String

Represents encoded transaction content

gas

Number

Represents transaction fee parameter

gasPrice

String

Represents transaction fee parameter

nonce

Number

Count of sender transactions

chainId

Number

Represents the id information of the network where the transaction will perform.

Last updated