Distribute

Distribute the entire balance of Splitter to recipients.

About

Use this action to distribute the entire balance of the Splitter to the recipients according to the percentage split set when deploying the Split smart contract.

This action only needs to be called once by one recipient, and all users will receive their share.

The recipient that calls distribute will pay the gas fee to send the tokens to all recipients.

Parent Element

Smart Contracts Actions

Drop this element onto the page first to access this action.

Action Name

Splitter - Distribute a Smart Contracts Actions.

Action Parameters

Press "Show Documentation" under the input for more information on each field.

The connected wallet must have a balance of "Native Token" to cover the network fee for interacting with the contract. (eg. ETH on Ethereum, or MATIC on Polygon).

Gasless Transaction 😱

As mentioned above, when a user would like to claim an NFT from your smart contract they must hold a balance of native tokens in their connected wallet to pay the network fee (gas fee) to claim the NFT from your contract.

This can lead to poor UX for new web3 users!

A solution to this problem is to use a Biconomy relayer to cover this gas fee for your users. All your user will need to do is sign a transaction with their connected wallet, then the transaction will be relayed to your Biconomy account to pay the gas fee to claim the NFT.

Learn how to set up a Biconomy relayer here

Exposed States

The following states are available once this action has run.

Splitter - Distribute Transaction ID

The transaction receipt of distributing a splitter.

Splitter - Distribute Error

The error that occurred while distributing a splitter.

Events

Splitter - Distributed

A Splitter was successfully distributed.

Splitter - Distribute Error

An error occurred while distributing a splitter.

More questions? Join our Discord

Last updated