i’m using this api: Moralis.Web3API.native.getNFTTransfersByBlock
if a transaction has more than 1 transfers, the transfer value returned by this api is the total value, not average value.
this is an example transfer returned by this api:
{
"_id" : ObjectId("61ac1cfcedf3ade5504c3900"),
"token_address" : "0x977dc06b51e14277a5ac047b44c78dbcc60a372b",
"token_id" : "39",
"from_address" : "0xa4cca25ce88dc2d3bbf6da5a6f98f2cc079c97d9",
"to_address" : "0x808ddc4e39a04c692cbbe6d32197ca75efb7aa8b",
"value" : "2900000000000000000",
"amount" : "1",
"contract_type" : "ERC721",
"block_number" : "13743275",
"block_timestamp" : "2021-12-05T01:53:49.000Z",
"block_hash" : "0xbfb4fb7b4d98dea93ec0735379d59069d2216782fc381f7706633420d2721f52",
"transaction_hash" : "0xe1e4be1e149948eacb17797fcaf0a4f91e070b0ab134e02481f81930c49f1b88",
"transaction_type" : "Single",
"transaction_index" : 10,
"log_index" : 19
}
the value field, which is the total value of the transaction, is not very right here.