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
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
-ETH
or the token's symbol.null
if not defined in the contract and not available from our sources.decimals:
QUANTITY
- contract decimal.null
if 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