|
|
@ -80,7 +80,7 @@ In case of a chain reorganization the subscription will emit the last header in |
|
|
|
#### Example |
|
|
|
#### Example |
|
|
|
|
|
|
|
|
|
|
|
```json |
|
|
|
```json |
|
|
|
{"id": 1, "method": "eth_subscribe", "params": ["newHeads"]} |
|
|
|
{ "id": 1, "method": "eth_subscribe", "params": ["newHeads"] } |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
returns |
|
|
|
returns |
|
|
@ -128,7 +128,17 @@ In case of a chain reorganization previous sent logs that are on the old chain w |
|
|
|
#### Example |
|
|
|
#### Example |
|
|
|
|
|
|
|
|
|
|
|
```json |
|
|
|
```json |
|
|
|
{"id": 1, "method": "eth_subscribe", "params": ["logs", {"address": "0x8320fe7702b96808f7bbc0d4a888ed1468216cfd", "topics": ["0xd78a0cb8bb633d06981248b816e7bd33c2a35a6089241d099fa519e361cab902"]}]} |
|
|
|
{ |
|
|
|
|
|
|
|
"id": 1, |
|
|
|
|
|
|
|
"method": "eth_subscribe", |
|
|
|
|
|
|
|
"params": [ |
|
|
|
|
|
|
|
"logs", |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
"address": "0x8320fe7702b96808f7bbc0d4a888ed1468216cfd", |
|
|
|
|
|
|
|
"topics": ["0xd78a0cb8bb633d06981248b816e7bd33c2a35a6089241d099fa519e361cab902"] |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
} |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
returns |
|
|
|
returns |
|
|
@ -152,7 +162,7 @@ none |
|
|
|
#### Example |
|
|
|
#### Example |
|
|
|
|
|
|
|
|
|
|
|
```json |
|
|
|
```json |
|
|
|
{"id": 1, "method": "eth_subscribe", "params": ["newPendingTransactions"]} |
|
|
|
{ "id": 1, "method": "eth_subscribe", "params": ["newPendingTransactions"] } |
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
returns |
|
|
|
returns |
|
|
|