Skip to main content
POST
/
token-launch
/
claim-txs
/
v2
Get claim transactions (v2)
curl --request POST \
  --url https://public-api-v2.bags.fm/api/v1/token-launch/claim-txs/v2 \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "feeClaimer": "<string>",
  "tokenMint": "<string>",
  "virtualPoolAddress": "<string>",
  "dammV2Position": "<string>",
  "dammV2Pool": "<string>",
  "dammV2PositionNftAccount": "<string>",
  "tokenAMint": "<string>",
  "tokenBMint": "<string>",
  "tokenAVault": "<string>",
  "tokenBVault": "<string>",
  "claimVirtualPoolFees": true,
  "claimDammV2Fees": true,
  "isCustomFeeVault": true,
  "feeShareProgramId": "<string>",
  "customFeeVaultClaimerA": "<string>",
  "customFeeVaultClaimerB": "<string>",
  "customFeeVaultClaimerSide": "A"
}
'
{
  "success": true,
  "response": [
    {
      "tx": "<string>",
      "blockhash": {
        "blockhash": "<string>",
        "lastValidBlockHeight": 123
      }
    }
  ]
}

Authorizations

x-api-key
string
header
required

API key authentication. Provide your API key as the header value.

Body

application/json
feeClaimer
string
required

Public key of the fee claimer wallet

tokenMint
string
required

Token mint public key

virtualPoolAddress
string | null

Virtual pool address (required if claimVirtualPoolFees is true)

dammV2Position
string | null

DAMM v2 position public key

dammV2Pool
string | null

DAMM v2 pool public key

dammV2PositionNftAccount
string | null

DAMM v2 position NFT account public key

tokenAMint
string | null

Token A mint public key

tokenBMint
string | null

Token B mint public key

tokenAVault
string | null

Token A vault public key

tokenBVault
string | null

Token B vault public key

claimVirtualPoolFees
boolean | null

Whether to claim virtual pool fees

claimDammV2Fees
boolean | null

Whether to claim DAMM v2 fees

isCustomFeeVault
boolean | null

Whether using a custom fee vault (true for fee share v1 or v2 programs)

feeShareProgramId
string | null

Program ID of the fee share program being used. Required when isCustomFeeVault is true.

customFeeVaultClaimerA
string | null

Custom fee vault claimer A public key (for v1 fee share)

customFeeVaultClaimerB
string | null

Custom fee vault claimer B public key (for v1 fee share)

customFeeVaultClaimerSide
enum<string> | null

Which side of the custom fee vault to claim for (for v1 fee share)

Available options:
A,
B

Response

Successfully generated claim transactions

success
boolean
required
Example:

true

response
object[]