QAF NFT
  • Getting Started
  • 📚TERMS/DOMAINS
    • Network
    • Project
    • Contract
    • Category
    • Nft Item
    • Nft Item Attribute
    • Project Token
    • Marketplace Fees
    • Marketplace Token
    • Marketplace Items
  • ⚙️API REFERENCE
    • Postman Collection
    • Authentication
    • NFT API
      • List Networks
      • Create Project
      • Get Project Detail
      • Filter Projects
      • Deploy Contract
      • Get Contract Detail
      • Filter Contracts
      • Add Category
      • Update Category
      • Delete Category
      • Get Category Detail
      • Filter Categories
      • Create Nft Item
      • Batch Create Nft Item
      • Validate Metadata File
      • Mint Nft Items
      • Update Nft Item Metadata
      • Set Nft Item Category
      • Get Nft Item Detail
      • Filter Nft Items
      • Add Nft Item Attribute
      • Update Nft Item Attribute
      • Delete Nft Item Attribute
      • Get Nft Item Attribute Detail
      • Filter Nft Item Attributes
      • Get Balance by Nft Item and Address
      • Get Balance by Address
      • Get Balance by Nft Item
      • Filter Nft Item Transfers
      • Deploy Project Token
      • Get Project Token Detail
      • Init Project Token Transfer
      • Client Token Transfer
      • Init Project Token Allowance
      • Check Project Token Allowance
      • Filter Project Tokens
      • Get Project Token Balance by Symbol and Address
      • Get Project Token Balance by Address
      • Get Project Token Balance by Symbol
      • Update Marketplace Royalty Fee
      • Filter Marketplace Fees
      • Add Marketplace Token
      • Get Marketplace Token Detail
      • Init Marketplace Token Allowance
      • Check Marketplace Token Allowance
      • Filter Marketplace Tokens
      • Init List Nft Item on Marketplace
      • Init Buy Nft Item from Marketplace
      • Init Cancel Listing from Marketplace
      • Get Marketplace Item Detail
      • Filter Marketplace Items
      • Init Transfer Nft Item
      • Init Transfer Nft Item to Client
      • Transfer Nft Item from Client
      • Init Lock Nft Item
      • Init Nft Approval Permission
      • Check Nft Item Approval Permission
      • Create Project Session
      • Get Project Session Detail
      • Filter Project Sessions
      • Create Off Chain Transaction
      • Get Off Chain Transaction
      • Filter Off Chain Transactions
      • Upload File
    • Error Codes
    • FAQ
      • How can I implement listing Nft Item on marketplace service properly?
      • How can I implement buy Nft Item from marketplace service properly?
Powered by GitBook
On this page
  • Init Marketplace Token Allowance
  • Example Response Body
  • Response Fields
  1. API REFERENCE
  2. NFT API

Init Marketplace Token Allowance

Initialize marketplace token allowance from owner address to operator address.

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 Marketplace Token Allowance

POST {{server-url}}/marketplace-tokens/allowance/init

It returns unsigned transaction data.

Headers

Name
Type
Description

Authorization*

String

UUID formatted access token

Content-Type*

String

application/json

PROJECT-ID*

String

UUID formatted projectId information

Request Body

Name
Type
Description

symbol*

String

Represents marketplace token's symbol

operatorAddress*

String

Represents the address to be allowed.

ownerAddress*

String

Represents address that will give allowance

{
    // Response
}
{
    // Response
}
{
    // Response
}
{
    // Response
}

Example Response Body

{
    "data": {
        "from": "0xC62297B53F39a1c071B76fAE973FA5454863fA9C",
        "to": "0x8d24100cFc88E9C49a46a1d9D7D8E9EE314fDe41",
        "data": "0xf242432a000000000000000000000000c62297b53f39a1c071b76fae973fa5454863fa9c000000000000000000000000f98e4fe3c82eabf0139aa55f7e602351e9297996000000000000000000000000000000000000000000000000000000000000019a000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000",
        "gasPrice": 20000000000,
        "chainId": 5777
    },
    "message": null,
    "code": 0,
    "error": false
}

Response Fields

Key
Type
Description

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.

PreviousGet Marketplace Token DetailNextCheck Marketplace Token Allowance

Last updated 2 years ago

⚙️