package
0.29.0
Repository: https://github.com/ftlnetwork/ftlnetwork-sdk.git
Documentation: pkg.go.dev

# Functions

CalculateGas simulates the execution of a transaction and returns both the estimate obtained by the query and the adjusted amount.
CompleteAndBroadcastTxCli implements a utility function that facilitates sending a series of messages in a signed transaction given a TxBuilder and a QueryContext.
CompleteAndBroadcastTxREST implements a utility function that facilitates sending a series of messages in a signed transaction given a TxBuilder and a QueryContext.
EnrichCtxWithGas calculates the gas estimate that would be consumed by the transaction and set the transaction's respective value accordingly.
GetTxEncoder return tx encoder from global sdk configuration if ones is defined.
ParseFloat64OrReturnBadRequest converts s to a float64 value.
ParseInt64OrReturnBadRequest converts s to a int64 value.
ParseUint64OrReturnBadRequest converts s to a uint64 value.
PostProcessResponse performs post process for rest response.
PrintUnsignedStdTx builds an unsigned StdTx and prints it to os.Stdout.
ReadRESTReq is a simple convenience wrapper that reads the body and unmarshals to the req interface.
SignStdTx appends a signature to a StdTx and returns a copy of a it.
WriteErrorResponse prepares and writes a HTTP error given a status code and an error message.
WriteGenerateStdTxResponse writes response for the generate_only mode.
WriteSimulationResponse prepares and writes an HTTP response for transactions simulations.

# Structs

BaseReq defines a structure that can be embedded in other request structures that all share common "base" fields.