---
title: "Get partner config creation transaction"
method: POST
path: "/fee-share/partner-config/creation-tx"
tags: ["Partner"]
---

# Get partner config creation transaction

`POST /fee-share/partner-config/creation-tx`

## Request

- Base URL: `https://public-api-v2.bags.fm/api/v1`
- URL: `https://public-api-v2.bags.fm/api/v1/fee-share/partner-config/creation-tx`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/bags/apis/bags-public-api-v2/docs/fee-share/partner-config/creation-tx/post.ts> (a function with typed inputs; its response is checked against the schema)

Get a transaction to create a partner key (partner config) for fee sharing. Only one partner key can be created per wallet.

## Request body

- object
  - `partnerWallet` string, required: Public key of the partner wallet that will receive fees

## Response `200`

Successfully generated partner config creation transaction

- object
  - `success` boolean, required
  - `response` object
    - `transaction` string, required: Base58 encoded serialized transaction
    - `blockhash` BlockhashWithExpiryBlockHeight, required
      - `blockhash` string, required: Recent blockhash for the transaction
      - `lastValidBlockHeight` number, required: The last block height for which the blockhash is valid

## Other responses

- `400`: Bad request - Invalid wallet or partner config already exists
- `401`: Unauthorized - Invalid or missing API key
- `500`: Internal server error

---

[API](https://skmtc.dev/bags/apis/bags-public-api-v2.md) - [All operations](https://skmtc.dev/bags/apis/bags-public-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/bags/apis/bags-public-api-v2/revisions/4a14b82cd39d?raw)
