Addresses
How It Works
Getting an Address
curl "https://claimr.app/api/wallet/lookup?handle=elonmusk"const [pda] = PublicKey.findProgramAddressSync(
[Buffer.from('claimr'), Buffer.from(twitterId)],
new PublicKey('3FsU2B8R7sP5ih7w2RoxtJEHfvBVeXtM8WwF6rjMbUrT')
);Twitter ID vs Handle
getClaimrAddress('44196397'); // correct - uses ID
getClaimrAddress('elonmusk'); // wrong - produces a different addressLast updated