All Downloads are FREE. Search and download functionalities are using the official Maven repository.

waves.node.grpc.transactions_api.proto Maven / Gradle / Ivy

There is a newer version: 1.5.2
Show newest version
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;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy