Mint NFT from the JSON provided by http://add.trace.market Minting NFT:
curl -X POST http://api.trace.market/mint -H "Content-Type: application/json" -d '{"to": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8", "content": {"foo": "bar"}}'
Example result:
{
"message": "NFT minted successfully!",
"tokenId": "0xafad2547ea3a4e18e86638b6b72120f55889f97c65699d54af735ac60f729f25",
"swarmReference": "8a9486899faa8bb0b4f9256cc276b6fbe738c0ab9c2b55c490bbb8fc6a1f0c1e"
}
Getting NFT metadata by NFT ID:
curl -X GET http://api.trace.market/metadata/0xafad2547ea3a4e18e86638b6b72120f55889f97c65699d54af735ac60f729f25
Example result:
{
"swarmReference": "8a9486899faa8bb0b4f9256cc276b6fbe738c0ab9c2b55c490bbb8fc6a1f0c1e",
"content": {
"foo": "bar",
"_nftID": "0xafad2547ea3a4e18e86638b6b72120f55889f97c65699d54af735ac60f729f25"
}
}
Getting NFT history by owner address:
curl -X GET http://api.trace.market/history/0x70997970C51812dc3A010C7d01b50e0d17dc79C8
Example result:
{
"0x064798ccbb56c1677162fbde30e0e3ec247d59f7c9861cd6e33bc59bfd469011": [
"69f734d9e38c95115b873a7e4225973a7b813fe5ae49de7440149c3bf9af51cb"
],
"0xafad2547ea3a4e18e86638b6b72120f55889f97c65699d54af735ac60f729f25": [
"8a9486899faa8bb0b4f9256cc276b6fbe738c0ab9c2b55c490bbb8fc6a1f0c1e"
]
}
Every key is an NFT ID, and the value is an array of Swarm hases generated from the MetadataUpdated events.