MCPcopy Create free account
hub / github.com/OCEChain/OCEChain / CompleteAndBroadcastTxREST

Function CompleteAndBroadcastTxREST

client/utils/rest.go:202–262  ·  view source on GitHub ↗

CompleteAndBroadcastTxREST implements a utility function that facilitates sending a series of messages in a signed transaction given a TxBuilder and a QueryContext. It ensures that the account exists, has a proper number and sequence set. In addition, it builds and signs a transaction with the suppl

(w http.ResponseWriter, r *http.Request, cliCtx context.CLIContext, baseReq BaseReq, msgs []sdk.Msg, cdc *codec.Codec)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 11

BuildAndSignMethod · 0.95
WriteErrorResponseFunction · 0.85
HasDryRunArgFunction · 0.85
EnrichCtxWithGasFunction · 0.85
WriteSimulationResponseFunction · 0.85
HasGenerateOnlyArgFunction · 0.85
BroadcastTxMethod · 0.80
PostProcessResponseFunction · 0.70
ErrorMethod · 0.45

Tested by

no test coverage detected