Skip to main content
POST
/
fee-share
/
admin
/
update-config
Create fee share admin config update transactions
curl --request POST \
  --url https://public-api-v2.bags.fm/api/v1/fee-share/admin/update-config \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "baseMint": "<string>",
  "basisPointsArray": [
    5000
  ],
  "claimersArray": [
    "<string>"
  ],
  "payer": "<string>",
  "additionalLookupTables": [
    "<string>"
  ]
}
'
{
  "success": true,
  "response": {
    "transactions": [
      {
        "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
baseMint
string
required

Public key of the base mint

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

Required range: 0 <= x <= 10000
claimersArray
string[]
required

Array of fee claimer wallet public keys. Must align with basisPointsArray. Maximum 100, no duplicates.

Required array length: 1 - 100 elements

Public key of a fee claimer wallet

payer
string
required

Public key of the payer wallet

additionalLookupTables
string[] | null

Optional array of lookup table addresses. Required when there are more than 7 fee claimers.

Public key of a lookup table address

Response

Successfully created config update transactions

success
boolean
required
Example:

true

response
object