This action will execute one of the Contract Methods you have defined in your 1Shot API account and create a Transaction.
Developer info
API endpoint slug
1shotapi.execute
Filter code method
_1shotapi.execute.skip(string?: reason)
Runtime method
runAction("1shotapi.execute", {})
Action fields
Contract method Dropdown list
Label
Choose the Contract Method you want to execute
Slug
contract_method_id
Required
true
Can have default value
false
Params Text input > Other
Label
Enter the parameters for the Contract Method
Helper text
This must be in JSON format. For example, a "mint" method's params may look like this: {"amount":"10000","to":"0x3e6a2f0CBA03d293B54c9fCF354948903007a798"}. This must be at least an object, {}
Slug
params
Required
true
Can have default value
true
Memo Text input > Other
Label
Enter any text you want included with the Transaction as a memo
Helper text
This may be anything you want, including technical information you want to save. Many people use JSON here.
Slug
memo
Required
false
Can have default value
true
Filter code method
_1shotapi.execute.setMemo(string: memo)
Gas limit Text input > Other
Label
What is the maximum amount of gas to use?
Helper text
1Shot API calculates this for you in most circumstances, but some complex transactions may need more gas.
Slug
gas_limit
Required
false
Can have default value
true
Filter code method
_1shotapi.execute.setGas Limit(string: gas_limit)
Value Text input > Other
Label
How much native token should be sent with the Transaction?
Helper text
Enter a value only for "payable" contract methods that need to send native token to the smart contract.