Monetization
You can monetize your SwapKit integration and collect fees.
To monetize your integration, follow the steps below to register and set up your affiliate configuration.
Step 1: Register in the SwapKit Partner's Dashboard
You can register and manage your affiliate configuration in the SwapKit Partner's Dashboard.
Create an account using:
Standard registration with email and password
Discord login
Google login
Once logged in, generate an API key and name it.
Step 2: Configure the API Key
The API key must be configured with specific addresses to monetize the integration. After connecting your wallet, you should register an affiliate identifier for each of the three cross-chain providers:
THORName for THORChain
MAYAName for MAYAChain
Chainflip Broker for Chainflip
THORName and MAYAName
THORName and MAYAName are aliases to your address similar to ENS in the Ethereum chain. For our usecase, they must have a maximum of three characters, including letters and the characters
-_+
.You can select a preferred asset among those traded on the respective provider so that the fees are automatically be received in that asset.
The payout address can be customized if you prefer a different address from the one that registered the alias.
Step 3: Set Affiliate fee tiers
You can define affiliate fee tiers in their configuration. Each fee tier is based on transaction value (in USD), and a different fee in basis points (bps) can be set for each tier. 1 bps equals 0.01%. The fee tiers can be applied globally or specifically for each provider.
Step 4: Monetize API requests
When making requests to the /quote
or the /chainflip/broker/channel
endpoint, use the x-api-key
header with the generated API key. The affiliate fee tier will be applied automatically, ensuring you earn the configured fees for each transaction.
Last updated