NFT Collections
post
https://api.nfty.dev
/v1/collections
Create a new NFT Collection

Example Request:

1
curl --request POST \
2
--url https://api.nfty.dev/v1/collections \
3
--header 'Content-Type: application/json' \
4
--header 'authorization: Bearer c4Vftx4kGiFYqpjM/3p4o5pgkmuthLWUNpXNlrig8EjlnSTeVgde4kEBdI1Uc1RFqWJBBRxkOmZ/QcHQXdQNjQ==' \
5
--data '{
6
"name": "Token Name",
7
"symbol": "TKN",
8
"description": "This is a description of my NFT collection.",
9
"image": "https://domain.com/image.png",
10
"external_link": "https://mywebsite.com",
11
"mint_supply_count": 1000,
12
"type": "ERC721"
13
}'
14
Copied!

Example Response:

1
{"request_id":"96c71219efed57b38068fc3fe3fcdbb9e4f41041f5d1fe8ea8b830dd3bd19586"}
Copied!
post
https://api.nfty.dev
/v1/collections
Create a new NFT Collection (Self-Hosted)

Example Request:

1
curl --request POST \
2
--url https://api.nfty.dev/v1/collections \
3
--header 'Content-Type: application/json' \
4
--header 'authorization: Bearer c4Vftx4kGiFYqpjM/3p4o5pgkmuthLWUNpXNlrig8EjlnSTeVgde4kEBdI1Uc1RFqWJBBRxkOmZ/QcHQXdQNjQ==' \
5
--data '{
6
"name": "Token Name",
7
"symbol": "TKN",
8
"base_uri": "https://base.com/",
9
"collection_uri": "https://contract.com/721",
10
"type": "ERC721"
11
}'
12
Copied!

Example Response:

1
{"request_id":"96c71219efed57b38068fc3fe3fcdbb9e4f41041f5d1fe8ea8b830dd3bd19586"}
Copied!
get
https://api.nfty.dev
/v1/collections
View your NFT Collections

Example Request:

1
curl --request GET \
2
--url https://api.nfty.dev/v1/collections \
3
--header 'Content-Type: application/json' \
4
--header 'authorization: Bearer c4Vftx4kGiFYqpjM/3p4o5pgkmuthLWUNpXNlrig8EjlnSTeVgde4kEBdI1Uc1RFqWJBBRxkOmZ/QcHQXdQNjQ=='
Copied!

Example Response:

1
[
2
{
3
"address":"0xb9bf61b55f66afc64fd7fbf7fa4fea4e2e4c5fdd",
4
"name":"ERC721 Token",
5
"symbol":"TKN",
6
"base_uri":"https://base.com/",
7
"collection_uri":"https://contract.com/721",
8
"mint_supply_count":1000,
9
"type":"ERC721",
10
"timestamp":"2021-08-30T07:34:17.516Z"
11
},
12
{
13
"address":"0xcbec1a2ae881487fa642041cbd1bfe4b690af269",
14
"name":"ERC1155 Tokens",
15
"symbol":"TKNS",
16
"base_uri":"https://base.com/{id}",
17
"collection_uri":"https://contract.com/1155",
18
"mint_supply_count":0,
19
"type":"ERC1155",
20
"timestamp":"2021-08-30T07:35:26.151Z"
21
}
22
]
Copied!
get
https://api.nfty.dev
/v1/collections/:address
List NFTs in a Collection

Example Request:

1
curl --request GET \
2
--url https://api.nfty.dev/v1/collections/0xb9bf61b55f66afc64fd7fbf7fa4fea4e2e4c5fdd \
3
--header 'Content-Type: application/json' \
4
--header 'Authorization: Bearer c4Vftx4kGiFYqpjM/3p4o5pgkmuthLWUNpXNlrig8EjlnSTeVgde4kEBdI1Uc1RFqWJBBRxkOmZ/QcHQXdQNjQ=='
Copied!

Example Response:

1
{
2
"address":"0xb9bf61b55f66afc64fd7fbf7fa4fea4e2e4c5fdd",
3
"assets":
4
[
5
{"token_id":1,"token_url":"https://nfty.com/1","timestamp":"2021-08-30T07:35:26.151Z"},
6
{"token_id":2,"token_url":"https://nfty.com/2","timestamp":"2021-08-30T07:35:26.151Z"},
7
{"token_id":3,"token_url":"https://nfty.com/3","timestamp":"2021-08-30T07:35:26.151Z"}
8
]
9
}
Copied!