Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- syntax = "proto3";
- package btc;
- service NodeCommuunications {
- rpc EventInitialAdd (UsersData) returns (ReplyInfo){
- }
- rpc EventAddNewAddress (WatchAddress) returns (ReplyInfo){
- }
- rpc EventGetBlockHeight (Empty) returns (BlockHeight){
- }
- rpc EventGetAllMempool (Empty) returns (stream MempoolRecord){
- }
- rpc EventAddMempoolRecord (Empty) returns (stream MempoolRecord){
- }
- rpc EventDeleteMempool (Empty) returns (stream MempoolToDelete){
- }
- rpc EventResyncAddress (AddressToResync) returns (ReplyInfo){
- }
- rpc EventSendRawTx (RawTx) returns (ReplyInfo){
- }
- rpc EventDeleteSpendableOut (Empty) returns (stream ReqDeleteSpOut){
- }
- rpc EventAddSpendableOut (Empty) returns (stream AddSpOut){
- }
- rpc NewTx (Empty) returns (stream BTCTransaction){
- }
- }
- message BTCTransaction {
- string userID = 1;
- string txID = 2;
- string txHash = 3;
- string txOutScript = 4;
- repeated string txAddress = 5;
- int32 txStatus = 6;
- int64 txOutAmount = 7;
- int64 blockTime = 8;
- int64 blockHeight = 9;
- int32 confirmations = 10;
- int64 txFee = 11;
- int64 mempoolTime = 12;
- message AddresAmount {
- string address = 1;
- int64 amount = 2;
- }
- repeated AddresAmount txInputs = 13;
- repeated AddresAmount TxOutputs = 14;
- message WalletForTx {
- string userid = 1;
- string address = 2;
- int32 txOutIndex = 3;
- int64 amount = 4;
- }
- repeated WalletForTx WalletsInput = 15;
- repeated WalletForTx WalletsOutput = 16;
- bool resync = 17;
- }
- message AddSpOut {
- string txID = 1;
- int32 txOutID = 2;
- int64 txOutAmount = 3;
- string txOutScript = 4;
- string address = 5;
- string userID = 6;
- int32 txStatus = 7;
- int32 walletIndex = 8;
- int32 addressIndex = 9;
- }
- message BlockHeight{
- int64 height = 1 ;
- }
- message ReqDeleteSpOut {
- string userID = 1;
- string txID = 2;
- string address = 3;
- }
- message MempoolToDelete {
- string hash = 1;
- }
- message WatchAddress {
- string address = 1;
- string userID = 2;
- int32 WalletIndex = 3;
- int32 AddressIndex = 4;
- }
- message MempoolRecord {
- int32 category = 1;
- string hashTX = 2;
- }
- message Empty {
- }
- message RawTx {
- string transaction = 1;
- }
- message AddressToResync {
- string address = 1;
- }
- message UsersData {
- map<string, AddressExtended> map = 1;
- }
- message AddressExtended {
- string UserID = 1;
- int32 WalletIndex = 2;
- int32 AddressIndex = 3;
- }
- message ReplyInfo {
- string message = 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement