The SDK supports Token 2022 transfer-hook DBC pools through dedicated config, pool, swap, and fee-claim builders. Use this page for the TypeScript integration surface. For product behavior, see DBC Transfer Hook Pools.Documentation Index
Fetch the complete documentation index at: https://docs.meteora.ag/llms.txt
Use this file to discover all available pages before exploring further.
Method Map
| Flow | SDK Method |
|---|---|
| Create transfer-hook config | client.partner.createConfigWithTransferHook |
| Create transfer-hook config and pool | client.partner.createConfigAndPoolWithTransferHook |
| Create transfer-hook config and pool with first buy | client.partner.createConfigAndPoolWithFirstBuyWithTransferHook |
| Create pool from transfer-hook config | client.creator.createPoolWithTransferHook |
| Create pool with first buy | client.creator.createPoolWithFirstBuyWithTransferHook |
| Create pool with partner and creator first buys | client.creator.createPoolWithPartnerAndCreatorFirstBuyWithTransferHook |
| Swap | client.pool.swap2WithTransferHook |
| Claim partner trading fee | client.partner.claimPartnerTradingFee2 |
| Claim creator trading fee | client.creator.claimCreatorTradingFee2 |
In SDK
1.5.8+, claimPartnerTradingFee2 and claimCreatorTradingFee2 are transfer-hook fee claim builders. For standard pools with explicit receivers, use claimPartnerTradingFeeToReceiver and claimCreatorTradingFeeToReceiver.State Reads
SDK1.5.9 fetches both standard and transfer-hook account variants through the same state methods.
poolConfig versus configWithTransferHook, and virtualPool versus transferHookPool.
Create A Transfer-Hook Config
Transfer-hook configs requireTokenType.Token2022 and a valid executable transfer-hook program.
CreatorUpdateAndMintAuthority and PartnerUpdateAndMintAuthority are only valid for transfer-hook configs. Standard configs reject mint-authority options.
Create A Transfer-Hook Pool
deriveDbcPoolAddress(quoteMint, baseMint, config).
Transfer-hook first-buy builders also use the transfer-hook swap path. They attempt to resolve the base mint’s hook remaining accounts automatically. If the hook cannot be resolved while bundling pool initialization with the first buy, pass transferHookAccountsInfo and transferHookAccounts on the first-buy params.
Swap A Transfer-Hook Pool
swap2WithTransferHook uses the same SwapMode variants as swap2. The SDK resolves transfer-hook extra accounts from the base mint and passes TransferHookAccountsInfo for you.
AccountsType.TransferHookBase and AccountsType.TransferHookBaseReferral slices.
Claim Trading Fees
| Standard Pool Claim | SDK Method |
|---|---|
| Partner claim with optional receiver and temporary wSOL account | client.partner.claimPartnerTradingFee |
| Partner claim to explicit receiver | client.partner.claimPartnerTradingFeeToReceiver |
| Creator claim with optional receiver and temporary wSOL account | client.creator.claimCreatorTradingFee |
| Creator claim to explicit receiver | client.creator.claimCreatorTradingFeeToReceiver |

