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-404

Deploy Contract 1x1

PreviousERC-404NextDeploy Contract A4

Last updated 2 months ago

Endpoint

POST /api/v1/ERC404/{network}/deploy-contract-1x1

This endpoint executes the deployment of an ERC-404 smart contract that issues 1x1 tokens.

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


Headers

Name
Value

Content-Type

application/json

Authorization


Body

Name
Type
Description

name

string

Defines the token name

ticker

string

Defines the token ticker

decimals

integer

Defines the token decimals

supply

integer

Defines the token total supply

tokenText

string

The text content that is stamped in the token output

metadata

string

The text content that is inserted in the token metadata, stored within its SVG file

walletPrivateKey

string

Deployer private key for authorizing transaction

background

string (optional), defaults to #000000

Hexadecimal color for the token output background

textColor

string (optional), defaults to #FFFFFF

Hexadecimal color for the token output text

fontFamily

string (optional), defaults to sans-serif

Font-family that is used in the token output text

borderRadius

integer (optional), defaults to 0

Border radius that is applied to the token output

showTrademark

boolean (optional), defaults to false

Xyxyx trademark displayed on the token output bottom right corner

showDeployerAddress

boolean (optional), defaults to false

Deployer address displayed on the token output bottom left corner

logo

string (SVG) (optional), defaults to null

1:1 SVG that is displayed on the top left corner of the token output

watermark

string (SVG) (optional), defaults to null

1:1 SVG that is displayed in the background of the token output (with 70% opacity)

transferTokenTo

string (address) (optional), defaults to null

Transfer first token from supply to the provided address


Response

{
  "success": true,
  "status": "Contract deployed at address: {contractAddress}`",
  "hash": "1x111...",
  "deploymentAddress": "0x32a...",
  "adressUrl": "https://etherscan.io/address/{contractAddress}",
  "deployerAddress": "0x567...",
  "transferTxHash": "0x222...",
  "transferMessage": "1 token transferred to {transferFirstTokenTo}"
}
{
  "success": false,
  "status": "Failed to deploy contract: {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