통합 API

CHAINFetch Bucket State

Last updated January 31, 2026

Genesis JavaScript SDK를 사용하여 블록체인에서 직접 실시간 버킷 상태를 조회합니다. 예치 총액, 수량, 토큰 할당량, 시간 조건을 반환합니다.

온체인 조회에는 UmiGenesis SDK가 필요합니다.

메서드

메서드런치 유형설명
fetchLaunchPoolBucketV2Launch PoolLaunch Pool 버킷 상태 조회
fetchPresaleBucketV2PresalePresale 버킷 상태 조회

Launch Pool 버킷

import { fetchLaunchPoolBucketV2 } from '@metaplex-foundation/genesis';
const bucket = await fetchLaunchPoolBucketV2(umi, launchPoolBucket);
console.log('Total deposits:', bucket.quoteTokenDepositTotal);
console.log('Deposit count:', bucket.depositCount);
console.log('Claim count:', bucket.claimCount);
console.log('Token allocation:', bucket.bucket.baseTokenAllocation);

Presale 버킷

import { fetchPresaleBucketV2 } from '@metaplex-foundation/genesis';
const bucket = await fetchPresaleBucketV2(umi, presaleBucket);
console.log('Total deposits:', bucket.quoteTokenDepositTotal);
console.log('Deposit count:', bucket.depositCount);
console.log('Token allocation:', bucket.bucket.baseTokenAllocation);
console.log('SOL cap:', bucket.allocationQuoteTokenCap);

시간 조건

각 버킷에는 런칭 단계를 제어하는 네 가지 시간 조건이 있습니다:

조건목적
depositStartCondition예치 시작 시점
depositEndCondition예치 종료 시점
claimStartCondition클레임 시작 시점
claimEndCondition클레임 종료 시점
const bucket = await fetchLaunchPoolBucketV2(umi, launchPoolBucket);
// Deposit window
const depositStart = bucket.depositStartCondition.time;
const depositEnd = bucket.depositEndCondition.time;
// Claim window
const claimStart = bucket.claimStartCondition.time;
const claimEnd = bucket.claimEndCondition.time;
console.log('Deposit starts:', new Date(Number(depositStart) * 1000));
console.log('Deposit ends:', new Date(Number(depositEnd) * 1000));
console.log('Claims start:', new Date(Number(claimStart) * 1000));
console.log('Claims end:', new Date(Number(claimEnd) * 1000));