Withdrawals
How funds are transferred from Claimr to a user's wallet.
User Flow
At claimr.app:
Enter Twitter handle to view balance
Authenticate with Twitter
Specify destination wallet address
Confirm withdrawal
Funds arrive within seconds. A 2% protocol fee is deducted.
Process
Backend verifies Twitter authentication
Oracle signs a withdrawal permit
Transaction submitted with Ed25519 signature verification
Contract validates signature and transfers funds
2% sent to treasury, remainder sent to destination
For Integrators
Withdrawals require Twitter OAuth and must go through claimr.app. However, you can prepare users:
Verify withdrawal eligibility:
canWithdraw is true when balance >= 0.04 SOL.
Collect before directing users:
Then redirect to claimr.app.
Troubleshooting
"Minimum withdrawal is 0.04 SOL"
Insufficient balance
"Nothing to withdraw"
PDA is empty; check if vault needs collection
Twitter login fails
User must authenticate with the matching account
Last updated