EVM User Custodial Payouts

Setup

Developer Resources

Quick Links:

Authorization Headers:

  • Authorization - Your API Key from the merchant dashboard
  • x-coinflow-auth-user-id - A unique customer ID you use within your systems to identify the user withdrawing funds
  • x-coinflow-auth-blockchain - Should always be solana

Integration

  1. Install Coinflow SDK
npm i @coinflowlabs/react@latest
  1. Implement Coinflow Withdraw
1<CoinflowWithdraw
2 wallet={{
3 address: string;
4 sendTransaction: (transaction) => Promise<{hash: string}>;
5 signMessage: (message: string) => Promise;
6 }} // end-user's evm wallet
7 merchantId={'YOUR_MERCHANT_ID'}
8 env={'sandbox' | 'prod'}
9 onSuccess={(...args) => console.log('Withdraw Success', args)}
10 blockchain={'base'}
11 email={'user@email.com'} // end user's email address
12 />