ERC1155 NFT Tokens
post
https://api.nfty.dev
/v1/nfts
Create a new ERC1155 NFT Token

Example Request:

1
curl --request POST \
2
--url https://api.nfty.dev/v1/nfts \
3
--header 'Content-Type: application/json' \
4
--header 'authorization: Bearer c4Vftx4kGiFYqpjM/3p4o5pgkmuthLWUNpXNlrig8EjlnSTeVgde4kEBdI1Uc1RFqWJBBRxkOmZ/QcHQXdQNjQ==' \
5
--data '{
6
"collection_address": "0x16325d875e01a40136d4eb1157208a7432186d95",
7
"initial_owner": "0x6d5f584f957858be82562a3b8b7b6268c4055f15",
8
"token_id": 1,
9
"initial_supply": 50,
10
"name": "My NFT",
11
"image": "https://domain.com/nfts/mynft.png",
12
"description": "A collectible NFT.",
13
"attributes": [
14
{
15
"trait_type": "Eyes",
16
"value": "Big"
17
},
18
{
19
"trait_type": "Level",
20
"value": 5
21
},
22
{
23
"display_type": "number",
24
"trait_type": "Generation",
25
"value": 2
26
}
27
]
28
}'
29
Copied!

Example Response:

1
{"request_id":"56b21219efed57b38068fc3fe3fcdbb9e4f41041f5d1fe8ea8b830dd3bd19586"}
Copied!
post
https://api.nfty.dev
/v1/nfts
Create a new ERC1155 NFT Token (Self-Hosted)

Example Request:

1
curl --request POST \
2
--url https://api.nfty.dev/v1/nfts \
3
--header 'Content-Type: application/json' \
4
--header 'authorization: Bearer c4Vftx4kGiFYqpjM/3p4o5pgkmuthLWUNpXNlrig8EjlnSTeVgde4kEBdI1Uc1RFqWJBBRxkOmZ/QcHQXdQNjQ==' \
5
--data '{
6
"collection_address": "0x16325d875e01a40136d4eb1157208a7432186d95",
7
"initial_owner": "0x6d5f584f957858be82562a3b8b7b6268c4055f15",
8
"token_id": 2,
9
"initial_supply": 50,
10
"uri": "https://customuri.com/special_token"
11
}'
12
Copied!

Example Response:

1
{"request_id":"56b21219efed57b38068fc3fe3fcdbb9e4f41041f5d1fe8ea8b830dd3bd19586"}
Copied!
post
https://api.nfty.dev
/v1/nfts
Mint additional ERC1155 NFT Tokens

Example Request:

1
curl --request POST \
2
--url https://api.nfty.dev/v1/nfts \
3
--header 'Content-Type: application/json' \
4
--header 'authorization: Bearer c4Vftx4kGiFYqpjM/3p4o5pgkmuthLWUNpXNlrig8EjlnSTeVgde4kEBdI1Uc1RFqWJBBRxkOmZ/QcHQXdQNjQ==' \
5
--data '{
6
"collection_address": "0x16325d875e01a40136d4eb1157208a7432186d95",
7
"to_address": "0x6d5f584f957858be82562a3b8b7b6268c4055f15",
8
"token_id": 1,
9
"quantity": 50
10
}'
11
Copied!

Example Response:

1
{"request_id":"56b21219efed57b38068fc3fe3fcdbb9e4f41041f5d1fe8ea8b830dd3bd19586"}
Copied!