Skip to main content
This guide covers how to claim LP fees from Dynamic Bonding Curve (DBC) pools created via Jupiter Studio. You will look up pool addresses by token mint, query total and unclaimed fees, then create and submit a claim transaction.
API REFERENCETo fully utilize the Studio API, check out the Studio API Reference.

Prerequisite

Set up RPC
NOTESolana provides a default RPC endpoint. However, as your application grows, we recommend you to always use your own or provision a 3rd party provider’s RPC endpoint such as Helius or Triton.
Set up Development Wallet
NOTE
  • You can paste in your private key for testing purposes but this is not recommended for production applications.
  • If you want to store your private key in the project directly, you can do it via a .env file.
To set up a development wallet via .env file, you can use the following script.
To set up a development wallet via a wallet generated via Solana CLI, you can use the following script.

Pool Address

Your successfully created token via Jupiter Studio, should have a newly generated token mint. By using the mint, you can get the config key and pool addresses associated to it: Dynamic Bonding Curve pool and Meteora DAMM V2 pool.

Fee

Using the Pool Address, you will be able to get the total and current unclaimed fees in the Dynamic Bonding Curve pool.

Claim Fee

In order to claim fees from a Dynamic Bonding Curve pool, you will need to pass in the pool address into this endpoint and we will create the Claim Fee transaction for you. After receiving the transaction, you will need to sign and submit the transaction to the network on your own (refer to Transaction Sending Example above).