Commit f5369faf authored by Ubuntu's avatar Ubuntu

add nonce

parent 4cdccde2
...@@ -35,12 +35,22 @@ message GetAccountsResp { ...@@ -35,12 +35,22 @@ message GetAccountsResp {
// GetBalance -> eth.getBalance -> eth_getBalance // GetBalance -> eth.getBalance -> eth_getBalance
message GetBalanceReq { message GetBalanceReq {
string address = 1; repeated string address = 1;
} }
message GetBalanceResp { message GetBalanceResp {
string balance = 1; repeated string balance = 1;
} }
// GetNonce -> eth.GetNonce -> GetNonce
message GetNonceReq {
repeated string address = 1;
}
message GetNonceResp {
repeated string balance = 1;
}
message CreateRawTransactionReq { message CreateRawTransactionReq {
string to = 1; string to = 1;
string data = 2; string data = 2;
...@@ -111,6 +121,7 @@ message CallResponse { ...@@ -111,6 +121,7 @@ message CallResponse {
service ProtoEthService { service ProtoEthService {
rpc GetBalance(GetBalanceReq) returns (GetBalanceResp) {}; rpc GetBalance(GetBalanceReq) returns (GetBalanceResp) {};
rpc GetNonce(GetNonceReq) returns (GetNonceResp) {};
rpc GetTransaction(GetTxReq) returns (TransactionInfo) {}; rpc GetTransaction(GetTxReq) returns (TransactionInfo) {};
rpc GetTransactionReceipt(TxHash) returns (TxReceipt) {}; rpc GetTransactionReceipt(TxHash) returns (TxReceipt) {};
rpc ContractCall(CallRequest) returns (CallResponse) {}; rpc ContractCall(CallRequest) returns (CallResponse) {};
......
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