Loopring Dev Docs
  • Introduction
  • Endpoints
  • SDK
    • SDK Guides
    • Test Mock Data
      • Mock Account
      • Mock provider
      • Mock ERC20 Token Map
      • Mock AMM MAP
      • Mock EIP712 Typed Data
      • Mock Generate eddsaKey
  • Glossary
  • 🗳️Loopring Account
    • Introduction
    • SDK Guides
      • Setup a Loopring Account
      • Unlock Account (Login)
    • API References
      • Get Account info
        • Sample code
      • Update EddsaKey
        • Sample code
      • Get apiKey
        • Sample code
      • Update apiKey
        • Sample code
  • 🎨CounterFactual NFT
    • Introduction
      • Compute NFT Address API
      • When to deploy counterfactual NFT contracts?
    • SDK Guides
      • Deposit NFT
      • Create Collection
      • Mint Counterfactual NFT
      • Transfer NFT
      • Deploy NFT
      • Withdraw NFT
      • Trade NFT
        • Validate NFT Order
      • Meta & IPFS
    • API References
      • NFT Collection
        • Create collection
          • Sample code
        • Edit collection
          • Sample code
        • Delete collection
          • Sample code
        • List owned collections
          • Sample code
        • List user's NFTs under one collection
          • Sample code
        • List user's NFT balances group by Collection ID
          • Sample code
        • List all NFTs of a collection
          • Sample code
        • Get collection by Collection ID
          • Sample code
        • Get collections by contract address
          • Sample code
      • Get NFT Assets
        • Sample code
      • Get NFT Balances
        • Sample code
      • Mint NFT
        • Sample code
      • Transfer NFT
        • Sample code
      • Validate NFT Order
        • Sample code
      • Trade NFT
        • Sample code
      • Deploy NFT TokenAddress
        • Sample code
      • Withdraw NFT
        • Sample code
      • Get NFT Transactions
        • Sample code
      • Get NFT Trade History
        • Sample code
      • Get AvailableBroker
        • Sample code
      • Get NFT Info
        • Sample code
      • Get NFT Data
        • Sample code
      • Get NFT Holders
        • Sample code
  • 🪙ERC20 Tokens
    • Introduction
    • SDK Guides
      • Transfer ERC20
      • Withdraw ERC20
      • Deposit ERC20
      • Order ERC20
    • API References
      • Get Assets
        • Sample code
      • Transfer
        • Sample code
      • Submit Order
        • Sample code
      • Cancel Order
        • Sample code
      • Withdraw
        • Sample code
      • Get Transactions
        • Sample code
      • Get Orders
        • Sample code
      • Get Trade History
        • Sample code
  • 🔬Resources
    • Advanced
      • UpdateAccount with custom seed
      • Pay payee updateAccount fee
      • Common error and solutions
      • Submit erc20 order
    • Common Info
      • Get relayer current time
        • Sample code
      • Get exchange info
        • Sample code
      • Get token info
        • Sample code
      • Get markets info
        • Sample code
    • Error codes
    • Fees
      • GET ERC20 Offchain Fee
        • Sample code
      • GET ERC20 Order Fee
        • Sample code
      • GET NFT Offchain Fee
        • Sample code
      • GET NFT Order Fee
        • Sample code
      • SDK Fees
    • Layer 2 block info
      • Get pending transactions
    • Request signing
      • Special API Request Signatures
      • Off-chain Request Signatures
      • Extra ECDSA authentic in header
    • Signature
      • ECDSA signature
        • ECDSA key generation
        • ECDSA sign
        • ECDSA verify signature
      • EdDSA signature
        • EdDSA key generation
        • EdDSA sign
        • EdDSA verify signature
      • SDK Signature
        • Mock Signature
    • Smart Contracts
    • Storage Id
      • Sample code
    • WebSocket
      • Account Notification
      • Order Notification
      • Orderbook Notification
      • Trade Notification
      • Ticker Notification
      • Candlestick Notification
      • AMM Pool Snapshot Notification
      • Block Generation Notification
    • Loopring Smart Wallet
      • Signature and verification
Powered by GitBook
On this page
  • Header
  • Request
  • Response

Was this helpful?

  1. CounterFactual NFT
  2. API References
  3. Mint NFT

Sample code

Header

X-API-KEY = l4hd4CGLLGuZ9nEultG4sfhQZDjPp9sv0kMy13cyGgkJyIWDodVSM4S4ucb5WFKN
X-API-SIG = 0x6c5a6278358b80a4e1ea4aafabe798723b501576457203c92b8c84bd0e426ea67083a79ae7bb07d99f56cffc102d514ebad4397ff13ea9a7660369ca994a8de21b02

Request

POST  api/v3/nft/mint
{
	"amount": "12",
	"ecdsaSignature": "0x6c5a6278358b80a4e1ea4aafabe798723b501576457203c92b8c84bd0e426ea67083a79ae7bb07d99f56cffc102d514ebad4397ff13ea9a7660369ca994a8de21b02",
	"eddsaSignature": "0x1e6a1876c82b7887d6713f4af73c2c663df350c0356b1aba63bc007342e371f50012082ae7cefa9c0402c41ac66445e6f66d10f6f68c6a85891d55c55d23e2ea1132034085593d5b8b057c2ba6f814b0cc5654baeec8d871e0625d05785cc030",
	"exchange": "0x2e76EBd1c7c0C8e7c2B875b6d505a260C525d25e",
	"forceToMint": false,
	"maxFee": {
		"tokenId": 2,
		"amount": "21400000"
	},
	"minterAddress": "0x6b1029c9ae8aa5eea9e045e8ba3c93d380d5bdda",
	"minterId": 10010,
	"nftId": "0x407294a8f36d3bdc4d04a6fce57afe0f8d49da56e04db83eb146c39ca24102e1",
	"nftType": 0,
	"royaltyPercentage": 0,
	"storageId": 1059,
	"toAccountId": 10010,
	"toAddress": "0x6b1029c9ae8aa5eea9e045e8ba3c93d380d5bdda",
	"tokenAddress": "0xc30e4cb0853470e6a412ca7f21363cd0d26428e8",
	"validUntil": 1655873983
}

Response

{
	"hash": "0x019242e2b67e16862d0191ca9a5013599f33856b91f47aed8025d44fb85ed946",
	"nftTokenId": 32789,
	"nftData": "0x2d4a0fc05056c1cd0e2a059b28d2072dc16cd5d083f77b48ea7d397d05e3627a",
	"status": "processing",
	"isIdempotent": false,
	"accountId": 10010,
	"storageId": 1059
}
PreviousMint NFTNextTransfer NFT

Last updated 2 years ago

Was this helpful?

🎨