Transfer
Subscribe to VET transfers with a given criteria.
Example:
const ws = new WebSocket('ws://localhost:8669/subscriptions/transfer?sender=0x6d95e6dca01d109882fe1726a2fb9865fa41e7aa')
ws.onmessage = (event) => {
console.log(event.data)
}
Query parameters
posstringOptionalPattern:
A saved block ID for resuming the subscription. If omitted, the best block ID is assumed.
Note: If the provided position is too far behind the best block, a 403 error will be thrown. The allowable difference depends on the configuration of each node.
See the argument api-backtrace-limit
when starting a node.
^(0x)?[0-9a-fA-F]{64}$
txOriginstringOptionalExample:
The address from which the transaction was sent.
0x6d95e6dca01d109882fe1726a2fb9865fa41e7aa
recipientstringOptionalExample:
The address that received the VET.
0x45429a2255e7248e57fce99e7239aed3f84b7a53
senderstringOptionalExample:
The address that sent the VET. In most cases this is the same as txOrigin
, but it may be different if the VET was sent by a contract.
0x6d95e6dca01d109882fe1726a2fb9865fa41e7aa
Responses
200
OK
application/json
Responseall of
and
and
400
Bad Request
text/plain
403
Forbidden
text/plain
get
GET /subscriptions/transfer HTTP/1.1
Host: vet.nownodes.io
Accept: */*
{
"address": "0x0000000000000000000000000000456e65726779",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x000000000000000000000000435933c8064b4ae76be665428e0307ef2ccfbd68"
],
"data": "0x4de71f2d588aa8a1ea00fe8312d92966da424d9939a511fc0be81e65fad52af8",
"obsolete": false,
"meta": {
"blockID": "0x0004f6cc88bb4626a92907718e82f255b8fa511453a78e8797eb8cea3393b215",
"blockNumber": 325324,
"blockTimestamp": 1533267900,
"txID": "0x284bba50ef777889ff1a367ed0b38d5e5626714477c40de38d71cedd6f9fa477",
"txOrigin": "0xdb4027477b2a8fe4c83c6dafe7f86678bb1b8a8d",
"clauseIndex": 0
}
}