POST
/
api
/
v1
/
erc1155
/
mint
curl 'https://groupos.xyz/api/v1/erc1155/mint' \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <token>' \
--data-raw '{
    "chainId": 5,
    "contractAddress": "0x67F4732266C7300cca593C814d46bee72e40659F",
    "recipientAddress": "0xc517c83f417b73dA98647dad0FCB80af9f3b9531",
    "tokenId": "1",
    "amount": "1"
}'
{
  "success": true,
  "transactionHash": "0x58c789b7a59312ec0a659e165700db54af896d3e8b46e4aeecb33b32b88157c9",
  "transactionUrl": "https://goerli.etherscan.io/tx/0xef737091d8c3451b42659688abd86b51516a6b43ee7dbdbda53c9005d86167db"
}

How to mint ERC-1155 NFTs

Once you have created ERC-1155 tokens, you can mint any number of a token to any address. You can check which tokens you have already created for your ERC-1155 collection with the Query ERC-1155 NFTs API. If you have not yet created any tokens, first do so with the Create ERC-1155 NFTs API.

Differences with ERC-721 NFTs

While minting ERC-721 NFTs, the unique tokenId associated with each NFT will auto-increment for you, but minting ERC-1155 NFTs requires an explicit argument for tokenId to indicate which NFT should be minted. For example, one may define NFT 1 as marking a donor, 2 for participating in last season, and 3 for being a attendee at the most recent event.

Body

chainId
number
required

The id of the chain supporting the NFT. This cannot be changed after creation.

contractAddress
string
required

The NFT smart contract address to mint with.

recipientAddress
string
required

The address to mint an NFT to.

tokenId
string
required

The unique id for the NFT within the collection. Type string is used to natively support large numbers.

amount
string
required

The amount of tokens to mint to recipient. Type string is used to natively support large numbers. Only integer-like strings allowed.

Response

success
boolean

Indicates whether the call was successful.

transactionHash
string

Transaction hash for the newly created token.

transactionUrl
string

Wraps transactionHash with the appropriate network-specific URL for convenience.