Commit 68c90c6f authored by Ubuntu's avatar Ubuntu

add nonce and balance

parent f5369faf
......@@ -82,3 +82,19 @@ message GetConsensusedBlockResponse {
}
// GetBalance -> eth.getBalance -> eth_getBalance
message GetBalanceReq {
repeated string address = 1;
}
message GetBalanceResp {
repeated string balance = 1;
}
// GetNonce -> eth.GetNonce -> GetNonce
message GetNonceReq {
repeated string address = 1;
}
message GetNonceResp {
repeated string balance = 1;
}
......@@ -18,4 +18,7 @@ service SentryService {
rpc CommitBlock(CommitBlockRequest) returns(CommitBlockResponse) {}
// GetConsensusedBlock used for nebula get special block consensus result.
rpc GetConsensusedBlock(GetConsensusedBlockRequest) returns(GetConsensusedBlockResponse) {}
rpc GetBalance(GetBalanceReq) returns (GetBalanceResp) {};
rpc GetNonce(GetNonceReq) returns (GetNonceResp) {};
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment