getAirdropById
Get airdrop detail by id.
Usage
example.ts
import { mintclub } from 'mint.club-v2-sdk'
const const detail: {
token: `0x${string}`;
isERC20: boolean;
walletCount: number;
claimCount: number;
amountPerClaim: bigint;
startTime: number;
endTime: number;
owner: `0x${string}`;
refundedAt: number;
merkleRoot: `0x${string}`;
title: string;
ipfsCID: string;
}detail = await mintclub.network('base').airdrop.getAirdropById(1)
Return Value
Promise<AirdropDetail>
{
token: `0x${string}`;
isERC20: boolean;
walletCount: number;
claimCount: number;
amountPerClaim: bigint;
startTime: number;
endTime: number;
owner: `0x${string}`;
refundedAt: number;
merkleRoot: `0x${string}`;
title: string;
ipfsCID: string;
}
Parameters
id
- Type:
number
Airdrop id.