waves.node.grpc.transactions_api.proto Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of protobuf-schemas Show documentation
Show all versions of protobuf-schemas Show documentation
Waves Node protobuf java classes
syntax = "proto3";
package waves.node.grpc;
option java_package = "com.wavesplatform.api.grpc";
option csharp_namespace = "Waves.Node.Grpc";
option go_package = "github.com/wavesplatform/gowaves/pkg/grpc/generated/waves/node/grpc";
import "waves/recipient.proto";
import "waves/transaction.proto";
import "waves/invoke_script_result.proto";
service TransactionsApi {
rpc GetTransactions (TransactionsRequest) returns (stream TransactionResponse);
rpc GetStateChanges (TransactionsRequest) returns (stream InvokeScriptResultResponse);
rpc GetStatuses (TransactionsByIdRequest) returns (stream TransactionStatus);
rpc GetUnconfirmed (TransactionsRequest) returns (stream TransactionResponse);
rpc Sign (SignRequest) returns (SignedTransaction);
rpc Broadcast (SignedTransaction) returns (SignedTransaction);
}
enum ApplicationStatus {
UNKNOWN = 0;
SUCCEEDED = 1;
SCRIPT_EXECUTION_FAILED = 2;
SCRIPT_EXECUTION_IN_PROGRESS = 3;
}
message TransactionStatus {
enum Status {
NOT_EXISTS = 0;
UNCONFIRMED = 1;
CONFIRMED = 2;
}
bytes id = 1;
Status status = 2;
int64 height = 3;
ApplicationStatus application_status = 4;
}
message TransactionResponse {
bytes id = 1;
int64 height = 2;
SignedTransaction transaction = 3;
ApplicationStatus application_status = 4;
}
message TransactionsRequest {
bytes sender = 1;
Recipient recipient = 2;
repeated bytes transaction_ids = 3;
}
message TransactionsByIdRequest {
repeated bytes transaction_ids = 3;
}
message CalculateFeeResponse {
bytes asset_id = 1;
uint64 amount = 2;
}
message SignRequest {
Transaction transaction = 1;
bytes signer_public_key = 2;
}
message InvokeScriptResultResponse {
SignedTransaction transaction = 1;
InvokeScriptResult result = 2;
}