watch_getTransfers
This method allows you to receive transfers by certain block parameters, smart contracts or transfer types: trx, erc20, erc721. This method can be useful to watch all transfers for certain tokens or certain blocks
Parameters
Object - An object with the following fields
fromBlock(optional):QUANTITY- the minimum block number from where to get the transactionstoBlock(optional):QUANTITY- the maximum block number from where to get the transactions.transferType(optional):DATA- transfer type(trx/erc20/erc721)contractAddresses(optional):DATA, 20 Bytes - contract address (i.e.0x1a2b3x) or array of contract addressesoffset(optional):QUANTITY- offset.limit(optional):QUANTITY- limit
"params": [
{
"contractAddress": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"fromBlock": 14046400,
"toBlock": 14049300,
"offset": 1,
"limit": 10
}
]Returns
Array- The list of all the transfersObject schema:
blockNumber: :
QUANTITY- the block number. null when its pending block.blockTimestamp:
DATETIME- the UTC DATETIME for when the block was collated.transactionHash:
DATA, 32 Bytes - hash of the transaction.transactionIndex:
QUANTITY- index of transactions in blocklogIndex:
QUANTITY- index of transaction logscontractAddress:
DATA, 20 Bytes - contract address (i.e.0x1a2b3x)transferType:
DATA, transfer type(trx/erc20/erc721)from:
DATA, 20 Bytes - address of the sender.to:
DATA, 20 Bytes - address of the receiver. null when it's a contract creation transaction.value:
QUANTITY- value transferred.fee:
QUANTITY- fee of the transaction.asset:
DATA-ETHor the token's symbol.nullif not defined in the contract and not available from our sources.decimals:
QUANTITY- contract decimal.nullif not defined in the contract and not available from other sources.error (optional):
BOOLEAN- True, if the transaction was made with an error
Request example
Response
Last updated