Hello,
I have a question â/{address}/nft/transfersâ is it supposed that it will issue transactions in descending order by date? If yes, then this is not being implemented now.
In â/{address}â and in â/{address}/erc20/transfersâ this rule is respected. I think this is a convenient format + the standard will be followed, otherwise â/{address}/nft/transfersâ will differ from â/{address}â and â/{address}/erc20/transfersâ by type of transactions order. Otherwise developers will have to manually create a separate method for sorting â/{address}/nft/transfersâ
Hi,
Can you also give an example of an address that you searched?
Yes, I found an simple example
Look this: âhtt ps://deep-index.mor alis.io/api/v2/0x9edd29bDF84110F611455D51F13fAA1Bf43503Ea/nft/transfers?chain=eth&format=decimal&direction=both&limit=0â (Remove the spaces yourself, I canât post with the link)
In the response, the 5th position (counting from top to bottom) is occupied by a transaction with hash â0x4e64a643b113879a36238f7b0620ffc4d8cec6a6e57c9fb30f54f37494afc94fâ it has âblock_timestampâ: â2021-08-29T23: 54: 52.000Zâ. This date is ~10 days younger than the transaction from the 4th position with the hash â0xde72b636af04faa228c7ab81f562c1e6cb0fde1b9ac473c99780f952ad69bdfdâ it has the date âblock_timestampâ: â2021-08-19T16: 18: 26.000Zâ.
Thus, we violate the sorting order by date, which is observed in â/{address}â and â/{address}/erc20/transfersâ.
Response:
{
"total": 11,
"page": null,
"page_size": "0",
"result": [
{
"token_address": "0x8442dd3e5529063b43c69212d64d5ad67b726ea6",
"token_id": "2139",
"from_address": "0x9edd29bdf84110f611455d51f13faa1bf43503ea",
"to_address": "0x929abc8937fbb81b843f385f871cb003a2b7858a",
"amount": "1",
"contract_type": "ERC721",
"block_number": "13137936",
"block_timestamp": "2021-09-01T05:30:24.000Z",
"block_hash": "0x8ca12d0ba70077c52e18454d5d81284f079f99a67dc6df21b651becdb02b7bab",
"transaction_hash": "0x5280cca827b0e3adf0104980982fa7875d7987a45989f7ead5010e5590d4b029",
"transaction_type": "Single",
"transaction_index": 77,
"log_index": 64
},
{
"token_address": "0x448fc198255128e3ab1f21b2fe7ce5adf154c2b5",
"token_id": "4602",
"from_address": "0x0000000000000000000000000000000000000000",
"to_address": "0x9edd29bdf84110f611455d51f13faa1bf43503ea",
"amount": "1",
"contract_type": "ERC721",
"block_number": "13115829",
"block_timestamp": "2021-08-28T19:31:46.000Z",
"block_hash": "0xd9fe5fbb87a3efbe9bb5d769a4227d1b181bb757c62668cd42b1a9355c679869",
"transaction_hash": "0x7c14bab91c559ccbacb78d5e8cb7dfdaf1db7eaa1ae787a7f3287cf1ae79c569",
"transaction_type": "Single",
"transaction_index": 162,
"log_index": 236
},
{
"token_address": "0x8442dd3e5529063b43c69212d64d5ad67b726ea6",
"token_id": "2139",
"from_address": "0x0000000000000000000000000000000000000000",
"to_address": "0x9edd29bdf84110f611455d51f13faa1bf43503ea",
"amount": "1",
"contract_type": "ERC721",
"block_number": "13056758",
"block_timestamp": "2021-08-19T16:18:26.000Z",
"block_hash": "0x5059a29571310601a3fe67232ee9ef6fca213f6d373fbe8e9c70bed2608a84df",
"transaction_hash": "0xde72b636af04faa228c7ab81f562c1e6cb0fde1b9ac473c99780f952ad69bdfd",
"transaction_type": "Single",
"transaction_index": 399,
"log_index": 397
},
{
"token_address": "0x8442dd3e5529063b43c69212d64d5ad67b726ea6",
"token_id": "2137",
"from_address": "0x0000000000000000000000000000000000000000",
"to_address": "0x9edd29bdf84110f611455d51f13faa1bf43503ea",
"amount": "1",
"contract_type": "ERC721",
"block_number": "13056758",
"block_timestamp": "2021-08-19T16:18:26.000Z",
"block_hash": "0x5059a29571310601a3fe67232ee9ef6fca213f6d373fbe8e9c70bed2608a84df",
"transaction_hash": "0xde72b636af04faa228c7ab81f562c1e6cb0fde1b9ac473c99780f952ad69bdfd",
"transaction_type": "Single",
"transaction_index": 399,
"log_index": 395
},
{
"token_address": "0x8442dd3e5529063b43c69212d64d5ad67b726ea6",
"token_id": "2138",
"from_address": "0x9edd29bdf84110f611455d51f13faa1bf43503ea",
"to_address": "0x265cdd11b3abb0432a35300f6afb214777280817",
"amount": "1",
"contract_type": "ERC721",
"block_number": "13123490",
"block_timestamp": "2021-08-29T23:54:52.000Z",
"block_hash": "0xcd6f9332fe43c4bc9dfd5ab1193900a309f5ca52f232f44726f3520516f01393",
"transaction_hash": "0x4e64a643b113879a36238f7b0620ffc4d8cec6a6e57c9fb30f54f37494afc94f",
"transaction_type": "Single",
"transaction_index": 73,
"log_index": 116
},
{
"token_address": "0x8442dd3e5529063b43c69212d64d5ad67b726ea6",
"token_id": "2138",
"from_address": "0x0000000000000000000000000000000000000000",
"to_address": "0x9edd29bdf84110f611455d51f13faa1bf43503ea",
"amount": "1",
"contract_type": "ERC721",
"block_number": "13056758",
"block_timestamp": "2021-08-19T16:18:26.000Z",
"block_hash": "0x5059a29571310601a3fe67232ee9ef6fca213f6d373fbe8e9c70bed2608a84df",
"transaction_hash": "0xde72b636af04faa228c7ab81f562c1e6cb0fde1b9ac473c99780f952ad69bdfd",
"transaction_type": "Single",
"transaction_index": 399,
"log_index": 396
},
{
"token_address": "0x495f947276749ce646f68ac8c248420045cb7b5e",
"token_id": "88320599163569697249487214270986600103298137206076503281018788710713795805185",
"from_address": "0xc343b0087fc5b3f0108f4cc96b3b33e52a04987f",
"to_address": "0x9edd29bdf84110f611455d51f13faa1bf43503ea",
"amount": "1",
"contract_type": "ERC1155",
"block_number": "13002932",
"block_timestamp": "2021-08-11T08:59:41.000Z",
"block_hash": "0xe4459287320a745cd565ef20340c6d65f60d2362320b415193a17dc87f52bc68",
"transaction_hash": "0xae4eca9c1a24bd50e2508d0eab695a30748610a02613246bcd7bf423a8791c04",
"transaction_type": "Single",
"transaction_index": 9,
"log_index": 1
},
{
"token_address": "0x57f1887a8bf19b14fc0df6fd9b2acc9af147ea85",
"token_id": "80502433355223353965594420366110432479607822516606531975556122021581848852437",
"from_address": "0x283af0b28c62c092c9727f1ee09c02ca627eb7f5",
"to_address": "0x9edd29bdf84110f611455d51f13faa1bf43503ea",
"amount": "1",
"contract_type": "ERC721",
"block_number": "12258250",
"block_timestamp": "2021-04-17T14:43:53.000Z",
"block_hash": "0xbe6beb8c86e70b934a5b98e97c5d08d46a8f60c7093a8b0df8ebe3460fee2b9a",
"transaction_hash": "0x29e2c3f40ace1a034f74c8f2aaadeaaab85ade40d8643c65e96962a4a8e1c342",
"transaction_type": "Single",
"transaction_index": 220,
"log_index": 330
},
{
"token_address": "0x8442dd3e5529063b43c69212d64d5ad67b726ea6",
"token_id": "2137",
"from_address": "0x9edd29bdf84110f611455d51f13faa1bf43503ea",
"to_address": "0xc954832e6e1a8841da7bfe984384b1e394242629",
"a
I just found out that you can specify to sort it by a specific field, for example by block number with:
https://deep-index.moralis.io/api/v2/0x9edd29bDF84110F611455D51F13fAA1Bf43503Ea/nft/transfers?chain=eth&format=decimal&direction=both&order=block_number.DESC
Yes it fits, thanks!