The core protocol of WoopChain
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
woop/client/service/proto/client.proto

35 lines
1.0 KiB

syntax = "proto3";
package client;
// Client is the service used for any client-facing requests.
service ClientService {
rpc FetchAccountState(FetchAccountStateRequest) returns (FetchAccountStateResponse) {}
rpc GetFreeToken(GetFreeTokenRequest) returns (GetFreeTokenResponse) {}
}
// FetchAccountStateRequest is the request to fetch an account's balance and nonce.
message FetchAccountStateRequest {
// The account address
bytes address = 1;
}
// FetchAccountStateResponse is the response of FetchAccountStateRequest.
message FetchAccountStateResponse {
// The balance of the account (big.Int)
bytes balance = 1;
// The nonce of the account
uint64 nonce = 2;
}
// GetFreeTokenRequest is the request to get free token from the faucet smart contract.
message GetFreeTokenRequest {
// The account address to receive the free token
bytes address = 1;
}
// GetFreeTokenResponse is the response of GetFreeTokenRequest.
message GetFreeTokenResponse {
// The transaction Id that requests free token from the faucet.
bytes txId = 1;
}