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')
);Use the ID, not the handle
getClaimrAddress('44196397'); // correct - uses ID
getClaimrAddress('elonmusk'); // wrong - different address entirelyLast updated