POST
/
token-launch
/
fee-share
/
create-config
Create Fee Share Config creation transaction
curl --request POST \
  --url https://public-api-v2.bags.fm/api/v1/token-launch/fee-share/create-config \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "walletA": "<string>",
  "walletB": "<string>",
  "walletABps": 123,
  "walletBBps": 123,
  "payer": "<string>",
  "baseMint": "<string>",
  "quoteMint": "<string>",
  "tipWallet": "<string>",
  "tipLamports": 123
}'
{
  "success": true,
  "response": {
    "tx": "<string>",
    "configKey": "<string>"
  }
}

Authorizations

x-api-key
string
header
required

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

Body

application/json
walletA
string
required

Public key of the first wallet

walletB
string
required

Public key of the second wallet

walletABps
number
required

Basis points for wallet A (must sum to 10,000 with walletBBps)

walletBBps
number
required

Basis points for wallet B (must sum to 10,000 with walletABps)

payer
string
required

Public key of the payer wallet

baseMint
string
required

Public key of the base mint

quoteMint
string
required

Public key of the quote mint (must be wSOL mint atm)

tipWallet
string

Base58 encoded Solana public key of the tip recipient wallet

tipLamports
number

Tip amount in lamports

Response

Successfully created fee share config

success
boolean
required
Example:

true

response
object