Skip to content

Commit

Permalink
Merge pull request #325 from xearl4/rest-parse-transaction
Browse files Browse the repository at this point in the history
Expose TransactionService#ParseTransaction via REST
  • Loading branch information
fasmat authored Apr 15, 2024
2 parents e95fa71 + 1fa6034 commit b71149e
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 45 deletions.
84 changes: 43 additions & 41 deletions release/go/spacemesh/v1/tx.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions release/go/spacemesh/v1/tx.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion spacemesh/v1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ service TransactionService {
// It has a limitation that it will work only for an already spawned accounts,
// and for initial spawn transactions. Client is expected to wait until spawn transaction
// executes before it will submit other transactions.
rpc ParseTransaction(ParseTransactionRequest) returns (ParseTransactionResponse);
rpc ParseTransaction(ParseTransactionRequest) returns (ParseTransactionResponse) {
option (google.api.http) = {
post: "/v1/transaction/parsetransaction"
body: "*"
};
}

// Returns current tx state for one or more txs which indicates if a tx is
// on the mesh, on its way to the mesh or was rejected and will never get
Expand Down

0 comments on commit b71149e

Please sign in to comment.