LogoLogo
  • About Absolute Labs
  • Absolute Labs Platform
  • Features
    • Overview
    • Insights
      • My Assets
      • NFT collections
      • Tokens
      • Websites
      • Mobile Apps
        • ALSDK iOS Framework
        • ALSDK Android Framework
      • Investor profile
    • Audiences
      • Segments
      • Custom lists
    • Flows
      • Conditions and delays
        • Wait until
        • Wait for
        • Random split
      • Entry Sources
        • Segment source
        • List source
        • Webhook source
        • List source
        • Transaction source
      • Channels
        • E-mail
        • Webhook
        • XMTP
        • SMS
        • Airdrop
          • Token Airdrops
          • NFT Airdrops
          • Custom contract call
      • Data
        • Add to list
      • Creating a flow
    • Access and invites
    • Google Cloud Integration
    • Salesforce B2C Commerce Cloud Cartridge
  • Use Cases
    • Upcoming NFT collection
    • Metaverse company
    • NFT Marketplace
    • Centralized exchange
    • SendGrid
    • See also
Powered by GitBook
On this page
  1. Features
  2. Flows
  3. Channels
  4. Airdrop

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.

PreviousNFT AirdropsNextData

Last updated 1 year ago

Setup

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:

  1. Select the blockchain on which your contract is deployed

  2. Paste your contract address in the corresponding field, and click out of the field to trigger a search of the available functions

  3. 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.

  4. 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)

  5. 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

  6. 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.

Selection of the blockchain on which the contract to call is deployed.