Loading markets…

Contract reference

Payable distribution functions, ABI errors and events, and read-only integration examples.

Public functions#

Both send methods require 1–400 entries and positive amounts. An address cannot be zero. Duplicate addresses are accepted as separate entries and are paid once per entry. Any transfer failure rolls back the batch.

FunctionValue and arguments
multisend(address[], uint256[])Equal array lengths. msg.value must equal the sum of the per-entry amounts.
multisendEqual(address[], uint256)msg.value must equal amount × recipient count.
MAX_RECIPIENTS() returns (uint256)Read-only. Returns 400.

Events and errors#

The indexed sender identifies the payer. The event count is the number of entries and totalAmount is native Wei. ReentrancyGuardReentrantCall is inherited from the reentrancy guard.

Solidity
event MultisendExecuted(address indexed sender, uint256 recipientCount, uint256 totalAmount);
error EmptyRecipients();
error TooManyRecipients(uint256 count);
error ArrayLengthMismatch(uint256 recipientsLength, uint256 amountsLength);
error InvalidRecipient(uint256 index);
error InvalidAmount(uint256 index);
error IncorrectValue(uint256 expected, uint256 actual);
error TransferFailed(uint256 index, address recipient);
error ReentrancyGuardReentrantCall();

Developer integration#

Use simulation and gas estimation before requesting a signature. The 400-entry validation limit does not guarantee that a batch fits the network gas limit. Recipient contracts can reject native transfers. These examples define an interface or simulate execution only.

interface INexaMultisender {
    function multisend(address[] calldata recipients, uint256[] calldata amounts) external payable;
    function multisendEqual(address[] calldata recipients, uint256 amount) external payable;
    function MAX_RECIPIENTS() external view returns (uint256);
}