View Source Soroban.Contract.InvokeHostFunction (Soroban v0.5.0)
InvokeHostFunction
implementation to invoke authorized and not authorized contract functions.
Link to this section Summary
Link to this section Types
@type account() :: Stellar.TxBuild.Account.t()
@type auth() :: String.t() | nil
@type auth_account() :: String.t() | nil
@type auth_accounts() :: [binary()]
@type contract_id() :: binary()
@type function_args() :: [struct()]
@type function_name() :: String.t()
@type invoke_host_function() :: Stellar.TxBuild.InvokeHostFunction.t()
@type sc_val_list() :: [Stellar.TxBuild.SCVal.t()]
@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 source_secret_key() :: binary()
Link to this section Functions
Link to this function
invoke(contract_id, source_secret_key, function_name, function_args, auth_accounts \\ [])
View Source@spec invoke( contract_id :: contract_id(), source_secret_key :: source_secret_key(), function_name :: function_name(), function_args :: function_args(), auth_accounts :: auth_accounts() ) :: send_response()