Installation

Most integrations require no dependencies. The REST API handles lookups and collection.

Using the API

curl "https://claimr.app/api/wallet/lookup?handle=someuser"

No authentication required.

Local Address Derivation

For offline use or batch processing, derive addresses directly using the Solana SDK:

npm install @solana/web3.js
import { PublicKey } from '@solana/web3.js';

const CLAIMR_PROGRAM = new PublicKey('3FsU2B8R7sP5ih7w2RoxtJEHfvBVeXtM8WwF6rjMbUrT');

function getClaimrAddress(twitterId: string): PublicKey {
  const [pda] = PublicKey.findProgramAddressSync(
    [Buffer.from('claimr'), Buffer.from(twitterId)],
    CLAIMR_PROGRAM
  );
  return pda;
}

// Use the numeric Twitter ID, not the handle
getClaimrAddress('44196397');

Reference

Program ID

3FsU2B8R7sP5ih7w2RoxtJEHfvBVeXtM8WwF6rjMbUrT

Protocol fee

2%

Minimum withdrawal

0.04 SOL

Last updated