You can withdraw collected fees in two ways:
1. LI.FI Partner Portal (Easiest) Go to portal.li.fi and withdraw directly from the dashboard.
2. API Endpoint Use the withdrawal fee API to get a transaction request:
GET /v1/integrators/{integratorId}/withdraw/{chainId}
You can also check your collected fees first:
GET /v1/integrators/{integratorId}
Important notes:
- Fees are collected per chain and per token individually
- You must use the original wallet to withdraw fees—fees cannot be transferred to a new wallet
- On Solana, Sui, and Bitcoin, fees are sent directly to your fee wallet and don't need to be claimed
Code Snippet for Transaction Request
For developers looking to initiate a withdraw collected fees transaction, here's a code snippet for reference
const sendTransactionRequest = async () => {
console.log('Sending Transaction Request');
const providerUrl = _NODE_PROVIDER_URL_;
const privateKey = _TOWalletPrivateKey_;
const provider = new ethers.JsonRpcProvider(providerUrl);
const signer = new ethers.Wallet(privateKey, provider);
const tx = await signer.sendTransaction({
//send the transactionRequest generated from step 2
to: '0xbD6C...........',
data: '0xe5......087d56'
});
console.log('Transaction Result:', tx);
}
You can also refer to our documentation and its superhepful AI Powered assistant in our main website page to get more details:
Monetizing Integration
Withdraw Fees API
Fees FAQ