Developer
  • API Overview
  • Getting Started
    • Authentication
    • Xyxyx API Keys
    • Getting an API Key
    • Rates & Limits
    • Endpoint URLs
    • Networks
    • Tokenization Models
  • Explorer
  • API Endpoints
    • ERC-721F
      • Deploy Contract
      • Mint 1x1
      • Mint A4
    • ERC-721
      • Deploy Contract 1x1
      • Deploy Contract A4
      • Mint Token
    • ERC-404
      • Deploy Contract 1x1
      • Deploy Contract A4
    • Preview Token
      • 1x1
      • A4
  • Utilities
    • Authorization for wallet transactions
    • Function insights
    • Code samples
    • Xyxyx Web Components
      • Tokenizer
Powered by GitBook
On this page
  1. API Endpoints
  2. ERC-721

Mint Token

PreviousDeploy Contract A4NextERC-404

Last updated 2 months ago

Endpoint

POST /api/v1/ERC721/{network}/mint-token

Executes the minting of an ERC-721 token of an existing smart contract.

Check the section for replacing the {network} text in the Endpoint URL.


Headers

Name
Value

Content-Type

application/json

Authorization


Body

Name
Type
Description

contractAddress

string

Address of the smart contract that will issue the token

tokenId

integer

Token unique identifier

mintCost

integer

Amount required to mint a token

walletPrivateKey

string

Deployer private key for authorizing transaction


Response

{
  "success": true,
  "status": "Token minted successfully at address: {contractAddress}`",
  "hash": "1x111..."
}
{
  "success": false,
  "status": "Failed to mint token: {error.message}"
}
{
  "success": false,
  "status": "The wallet does not own any valid Xyxyx API Key or XIN",
}
{
  "success": false,
  "status": "This wallet has already consumed its 24-hour request quota"
}

or

Networks
Xyxyx API Key
XIN