Allows plugins to connect to nodes.
Messages have the same format as on the P2P network:
Name | Data type | Description |
---|
syntax = "proto3"; | |
service NodeInterface { | |
rpc Messages(MessageSubscribeTo) returns (stream Message); | |
rpc GetRawBlock(GetRawBlockRequest) returns (GetRawBlockResponse); | |
rpc GetMempool(GetMempoolRequest) returns (GetMempoolResponse); | |
} | |
message MessageSubscribeTo { | |
bool updated_block_tip = 1; |
{ | |
"v": 3, | |
"q": { | |
"db": ["u", "c"], | |
"aggregate": [ | |
{ | |
"$match": { | |
"$or": [ | |
{"in.e.a": this._baseAddress}, | |
{"out.e.a": this._baseAddress}, |
{ | |
"v": 3, | |
"q": | |
{ | |
"db": ["c", "u"], | |
"aggregate": [ | |
{"$match":{ | |
"in.h0": "45584348", | |
"in.b1.op": 82, | |
"slp.valid": true |
{ | |
"v": 3, | |
"q": | |
{ | |
"db": ["c", "u"], | |
"aggregate": [ | |
{"$match":{ | |
"in.h0": "45584348", | |
"in.b1.op": 82, | |
"slp.valid": true, |