claim_moolah_mining_period
Claim a pending mining airdrop round from the Moolah merkle distributor, with automatic pre-checks to prevent gas loss from failed claims.
Instructions
Claim a single V2 mining airdrop round via multiClaim() on the Moolah merkle distributor. Pass periodKey from get_moolah_pending_mining_periods (preferred) or supply merkleIndex / index / amounts / proof directly. Pre-checks isClaimed() and merkleRoots() on-chain so the wallet does not pay gas for a guaranteed-revert tx. Mainnet currently errors with 'distributor not configured' until the V2 contract ships — nile testnet works.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | Override: leaf index inside the tree | |
| proof | No | Override: merkle proof (bytes32[]) | |
| address | No | Owner address used to refetch the airdrop entry when periodKey is supplied. Default: signing wallet | |
| amounts | No | Override: token amounts in raw units, slot-aligned with the tree's tokenAddress[] | |
| network | No | Network. Default: mainnet | |
| periodKey | No | Round key from get_moolah_pending_mining_periods (preferred) | |
| merkleIndex | No | Override: merkle tree index |