CallGenericWriteFunction
This function triggers a modal for the user to confirm the transaction
This is an advanced feature and can drain user wallet funds if you interact with a malicious contract. Only link to trusted smart contract authors.
Description
This allows you to call any smart contract function and process the response. This function should be used to query functions that require the users signature, hence it should be invoked only once the user is logged in.
Details
Signature
Arguments
callback?
Action<dynamic>
args.contractAddress
String
Contract address of the smart contract to be called
args.functionABI
String
args.functionName
String
Name of the function to be called as per the ABI.
args.value?
String
args.chain
Metafi.Unity.Chain
args.params
List<object>
Return Value
None
Handling Large Numerical Values
Applicable to EVM Chains only
While passing in large numerical values (values above 9007199254740991) in args.params
, a conversion to string format needs to be made. You can use the following methods that convert the number to the appropriate format:
Example
Last updated