watch_getTransfersByAddress
This method is needed to watch all transfers to certain addresses and other filters. It can be useful to receive historical wallet transfers
Parameters
Object - An object with the following fields
addresses:DATA, 20 Bytes - a user address (i.e.0x1a2b3x...) or array of user addresses.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)transferDirection(optional):DATA- transfer direction(from/to)contractAddresses(optional):DATA, 20 Bytes - contract address (i.e.0x1a2b3x) or list of contract addresses.offset(optional):QUANTITY- offset.limit(optional):QUANTITY- limit
"params": [
{
"addresses": "0x123f96bc8edcb73bd5b8612c1e5203f90d4628a4",
"contractAddresses": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"transferDirection": "to",
"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