View Source Soroban.Contract.RPCCalls (Soroban v0.16.0)
Exposes the functions to execute the simulate and send_transaction endpoints
Summary
Types
@type account() :: Stellar.TxBuild.Account.t()
@type auths() :: [String.t()] | nil
@type envelope_xdr() :: String.t()
@type footprint_operations() :: Stellar.TxBuild.BumpFootprintExpiration.t() | Stellar.TxBuild.RestoreFootprint.t()
@type operation() :: Stellar.TxBuild.InvokeHostFunction.t() | footprint_operations()
@type send_response() :: {:ok, Soroban.RPC.SendTransactionResponse.t()}
@type sequence_number() :: Stellar.TxBuild.SequenceNumber.t()
@type signature() :: Stellar.TxBuild.Signature.t()
@type simulate_response() :: {:ok, Soroban.RPC.SimulateTransactionResponse.t()}
@type validation() :: {:ok, any()}
Functions
Link to this function
retrieve_unsigned_xdr(response, source_account, sequence_number, invoke_host_function_op, extra_fee_rate \\ 0.0)
View Source@spec retrieve_unsigned_xdr( simulate_response :: simulate_response(), source_account :: account(), sequence_number :: sequence_number(), invoke_host_function_op :: operation(), extra_fee_rate :: float() ) :: envelope_xdr() | simulate_response()
Link to this function
send_transaction(response, source_account, sequence_number, signature, operation, auth_secret_key \\ nil, extra_fee_rate \\ 0.0)
View Source@spec send_transaction( simulate_response :: simulate_response(), source_account :: account(), sequence_number :: sequence_number(), signature :: signature(), operation :: operation(), auth_secret_key :: auth_secret_key(), extra_fee_rate :: float() ) :: send_response() | simulate_response()
Link to this function