Addresses

Every Twitter account maps to a unique Solana address. The same account always produces the same address.

How It Works

Claimr uses Solana PDAs (Program Derived Addresses), generated deterministically from the Claimr program ID and the Twitter user's numeric ID.

These addresses have no private keys. The Claimr program controls them and only releases funds when the Twitter owner authenticates.

Getting an Address

Via API:

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

Via local derivation (for offline or batch processing):

const [pda] = PublicKey.findProgramAddressSync(
  [Buffer.from('claimr'), Buffer.from(twitterId)],
  new PublicKey('3FsU2B8R7sP5ih7w2RoxtJEHfvBVeXtM8WwF6rjMbUrT')
);

Twitter ID vs Handle

Addresses are derived from the numeric Twitter ID, not the handle. Handles can change; IDs are permanent.

getClaimrAddress('44196397');     // correct - uses ID
getClaimrAddress('elonmusk');     // wrong - produces a different address

The API resolves handles to IDs automatically.

Last updated