Skip to content

Commit

Permalink
mainchain/wallet: add sendtransaction rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
octobocto committed Nov 5, 2024
1 parent 6c2c6f7 commit 9db5607
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions proto/cusf/mainchain/v1/wallet.proto
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ service WalletService {
returns (GetBalanceResponse);
rpc ListTransactions(ListTransactionsRequest)
returns (ListTransactionsResponse);
rpc SendTransaction(SendTransactionRequest)
returns (SendTransactionResponse);
// Regtest only
rpc GenerateBlocks(GenerateBlocksRequest)
returns (GenerateBlocksResponse);
Expand Down Expand Up @@ -133,3 +135,19 @@ message ListTransactionsResponse {
repeated WalletTransaction transactions = 1;
}

message SendTransactionRequest {
// Address -> satoshi amount
map<string, uint64> destinations = 1;

// Fee rate, measured in sat/vbyte. If set to zero, a reasonable
// rate is used by asking Core for an estimate.
uint64 fee_rate_sat_per_vbyte = 2;

// if set, the transaction will add a separate OP_RETURN output with this
// message.
optional bytes op_return_message = 3;
}
message SendTransactionResponse {
cusf.common.v1.ReverseHex txid = 1;
}

0 comments on commit 9db5607

Please sign in to comment.