Custom contract call
You can call any contract on-chain automatically from a Flow, and pass it the wallet addresses of the profiles entering the Airdrop block.
Last updated
You can call any contract on-chain automatically from a Flow, and pass it the wallet addresses of the profiles entering the Airdrop block.
Last updated
To call a contract on-chain as part of a Flow, you use the Airdrop block, in which you select the option "Custom".
To configure the function call, you then:
Select the blockchain on which your contract is deployed
Paste your contract address in the corresponding field, and click out of the field to trigger a search of the available functions
If your contract is verified on Etherscan, the list of available functions should be listed automatically. If not, you will need to copy paste the list of functions in the ABI format.
The write functions of the contract, to which one or more wallet address can be passed, will now be available in a dropdown. Select the function to call, e.g. mintTo(address)
The interface will offer fields for you to specify the values to pass to the various parameters of the contract call. Address fields can be mapped to the addresses which are received by the Airdrop block as part of the Flow
Save the configuration when you are done configuring the values to pass to the function parameters.
You can test this on testnets, as illustrated in the screenshot above.