WriteMethod
Calls a "write" method on the given contract.
Last updated
Calls a "write" method on the given contract.
Last updated
Type | Description | |
---|---|---|
Type | Params | Name | Description |
---|---|---|---|
Type | Returns | Name | Description |
---|---|---|---|
EmergenceTransaction
Transaction
The transaction hash.
EErrorCode
Status Code
The status code.
DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams
EmergenceTransaction
Transaction, TEnumAsByte<EErrorCode>
StatusCode
OnWriteMethodCompleted
Multicast delegate to bind to. Called when the asynchronous event has completed.
DECLARE_DYNAMIC_MULTICAST_DELEGATE
N/A
OnTransactionSent
Multicast delegate to bind to. Called when walletconnect has accepted the transaction.
Static Function
UWriteMethod*
WriteMethod(UObject* WorldContextObject, UEmergenceDeployment* DeployedContract, FEmergenceContractMethod MethodName, FString Value, TArray Content, FString PrivateKey, FString GasPrice, int NumberOfConfirmations = 5, float TimeBetweenChecks = 5.0F)
Constructor
WorldContextObject (UObject*):
DeployedContract
(UEmergenceDeployment*
): The deployed contract.
MethodName
(FEmergenceContractMethod
): The method to call.
Value
(FString
): The amount to transfer from sender to recipient (in Wei, or equivelent).
Content
(TArray<FString>
): The parameters to call the method with.
PrivateKey
(FString
): The private key to use when calling the method. Leave blank to call with the WalletConnect'd wallet. We've left it as an exercise for the developer on how to store this private key secretly, as this will depend on project its being implemented in greatly. To use WriteMethod via a PrivateKey, you must have DotNET 7.0 runtime installed, and be using Windows!
GasPrice
(FString
): The gas price to use if we're calling with a local account.
NumberOfConfirmations
(int
): The number of confirmations to wait for before deciding this transaction "confirmed".
TimeBetweenChecks
(float
): The amount of time between checks in seconds.
Function
void
Activate()
Activates the asynchronous event
Deployed Contract
The deployed contract.
EmergenceContractMethod
MethodName
The method to call.
FString
Value
The amount to transfer from sender to recipient (in Wei, or equivelent).
TArray<FString>
Content
The parameters to call the method with.
FString
PrivateKey
The private key to use when calling the method. Leave blank to call with the WalletConnect'd wallet. We've left it as an exercise for the developer on how to store this private key secretly, as this will depend on project its being implemented in greatly. To use WriteMethod via a PrivateKey, you must have DotNET 7.0 runtime installed, and be using Windows!
FString
Gas Price
The gas price to use if we're calling with a local account.
int
Number of Confirmations
The number of confirmations to wait for before deciding this transaction "confirmed".
float
Time Between Checks
The amount of time between checks in seconds.