While, in general, we would recommend deploying your smart contracts via the Builder, we recognize that there are some use cases where deploying a smart contract from Unity (or a Made-With-Unity application) is useful. Contract deployment involves sending a transaction, which is done via an asynchronous Task. You can useDocumentation Index
Fetch the complete documentation index at: https://sequence-0fb8d9e6-unreal-quickstart-with-marketplace.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
await when calling SequenceWallet.DeployContract from within an async Task if you wish to obtain the ContractDeploymentReturn object directly. Or, you can take the recommended approach which is to setup handler functions for the SequenceWallet.OnDeployContractComplete and SequenceWallet.OnDeployContractFailed events and call the SequenceWallet.DeployContract method from anywhere (without await).
SequenceWallet.DeployContract is essentially a wrapper for a very special SequenceWallet.SendTransaction call and therefore, you can expect to still receive the SequenceWallet.OnSendTransactionComplete or SequenceWallet.OnSendTransactionFailed events in addition.