Skip to main content
POST
/
fee-share
/
config
Create Fee Share Config creation transaction (v2)
curl --request POST \
  --url https://public-api-v2.bags.fm/api/v1/fee-share/config \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "payer": "<string>",
  "baseMint": "<string>",
  "claimersArray": [
    "<string>"
  ],
  "basisPointsArray": [
    123
  ],
  "partner": "<string>",
  "partnerConfig": "<string>",
  "additionalLookupTables": [
    "<string>"
  ],
  "tipWallet": "<string>",
  "tipLamports": 123
}
'
{
  "success": true,
  "response": {
    "needsCreation": true,
    "feeShareAuthority": "<string>",
    "meteoraConfigKey": "<string>",
    "transactions": [
      {
        "blockhash": {
          "blockhash": "<string>",
          "lastValidBlockHeight": 123
        },
        "transaction": "<string>"
      }
    ],
    "bundles": [
      [
        {
          "blockhash": {
            "blockhash": "<string>",
            "lastValidBlockHeight": 123
          },
          "transaction": "<string>"
        }
      ]
    ]
  }
}

Authorizations

x-api-key
string
header
required

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

Body

application/json
payer
string
required

Public key of the payer wallet

baseMint
string
required

Public key of the base mint (the token being launched)

claimersArray
string[]
required

Array of fee claimer wallet public keys. Must align with basisPointsArray. Maximum 100 fee claimers.

Required array length: 1 - 100 elements

Public key of a fee claimer wallet

basisPointsArray
number[]
required

Array of basis points for each fee claimer. Must align with claimersArray. Total must equal 10,000.

Required array length: 1 - 100 elements

Basis points allocated to the corresponding claimer

partner
string | null

Optional: Public key of the partner wallet for partner fee sharing

partnerConfig
string | null

Optional: Public key of the partner config PDA (required if partner is provided)

additionalLookupTables
string[] | null

Optional: Array of lookup table addresses. Required when there are more than 15 fee claimers.

Public key of a lookup table address

tipWallet
string | null

Base58 encoded Solana public key of the tip recipient wallet

tipLamports
number | null

Tip amount in lamports

Response

Successfully created fee share config

success
boolean
required
Example:

true

response
object