NFT Wallets
post
https://api.nfty.dev
/v1/accounts
Create NFT Wallet

Example Request:

1
curl --request POST \
2
--url https://api.nfty.dev/v1/accounts \
3
--header 'Content-Type: application/json' \
4
--header 'Authorization: Token c4Vftx4kGiFYqpjM/3p4o5pgkmuthLWUNpXNlrig8EjlnSTeVgde4kEBdI1Uc1RFqWJBBRxkOmZ/QcHQXdQNjQ==' \
5
--data '{
6
"user_identifier": "[email protected]"
7
}'
Copied!

Example Response:

1
{"address":"0x7eeef5e7ba91bbf9dc548fc786526cbba716e5d4",
2
"user_identifier":"[email protected]"}
Copied!
get
https://api.nfty.dev
/v1/accounts/user/:user_identifier
Get NFT Wallet Address for User

Example Request:

1
curl --request GET \
2
--url https://api.nfty.dev/v1/accounts/user/[email protected]%2Ecom \
3
--header 'Content-Type: application/json' \
4
--header 'Authorization: Token c4Vftx4kGiFYqpjM/3p4o5pgkmuthLWUNpXNlrig8EjlnSTeVgde4kEBdI1Uc1RFqWJBBRxkOmZ/QcHQXdQNjQ=='
Copied!

Example Response:

1
{"address":"0x5da2770b7decc2b03487f23af148455770919f6e"}
Copied!
get
https://api.nfty.dev
/v1/accounts/:address
List NFT Wallet Contents

Example Request:

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

Example Response:

1
{"address":"0x5da2770b7decc2b03487f23af148455770919f6e",
2
"assets":
3
[
4
{"token_id":1,"contract":"0x67fc09ae09c2964b289128347d8d080028e7ecea","type":"ERC721","token_url":"https://nfty.com/1"},
5
{"token_id":1,"contract":"0xf4e1074006928685a6ca3403d495f891eece7944","type":"ERC1155","token_url":"https://nfties.com/1","amount":1},
6
{"token_id":2,"contract":"0xf4e1074006928685a6ca3403d495f891eece7944","type":"ERC1155","token_url":"https://nfties.com/2","amount":2},
7
{"token_id":3,"contract":"0xf4e1074006928685a6ca3403d495f891eece7944","type":"ERC1155","token_url":"https://nfties.com/3","amount":5}
8
]
9
}
Copied!
get
https://api.nfty.dev
/v1/accounts/:address/asset_history/:contract/:token_id
List NFT Asset History

Example Request:

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

Example Response:

1
[
2
{"token_id":1,"type":"deposit","amount":1,"timestamp":"2021-08-25T12:19:46.000Z"},
3
{"token_id":2,"type":"deposit","amount":2,"timestamp":"2021-08-25T12:19:46.000Z"},
4
{"token_id":3,"type":"deposit","amount":10,"timestamp":"2021-08-25T12:19:46.000Z"},
5
{"token_id":3,"type":"withdrawal","amount":5,"timestamp":"2021-08-25T12:19:46.000Z"}
6
]
Copied!
Last modified 18d ago