View Source Soroban.Contract.RPCCalls (Soroban v0.13.0)
Exposes the functions to execute the simulate and send_transaction endpoints
Summary
Types
@type account() :: Stellar.TxBuild.Account.t()
@type auth_secret_key() :: String.t() | nil
@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)
View Source@spec retrieve_unsigned_xdr( simulate_response :: simulate_response(), source_account :: account(), sequence_number :: sequence_number(), invoke_host_function_op :: operation() ) :: envelope_xdr() | simulate_response()
Link to this function
send_transaction(response, source_account, sequence_number, signature, operation, auth_secret_key \\ nil)
View Source
Link to this function