Ethereum transaction parser
Locate cmd/parserd/parserd.go
go run .| flag name | function | default value |
|---|---|---|
| rpc.URL | Node rpc URL | https://ethereum-rpc.publicnode.com |
| port | Port to run the service on | :8080 |
| parse.interval | Interval on which to query for new block | 1s |
| log.level | Logging level: info OR debug |
info |
Returns json containing latest parsed block number.
Response:
{
"blockNumber" : 12321132
}Adds new addres to the list of addresses that are being observed
Request:
{
"blockNumber" : "0x12321132"
}Response:
- 200 : Address 0x12321132 has been subscribed.
- 400 : "that didn't work"
Returns the list of transactions that happened on {address} address.
Response:
{
[
{
"hash": "0x123",
"from": "0x342",
"to": "0x32213",
"value": "12312",
"blockNumber": 1231,
}
]
}