TypeScript/JavaScript
Install the Solana Attestations library, Solana Kit, and the two Kit plugins the examples use to build a client:Create a Client
The examples in these docs send instructions withclient.sendTransaction(...)
and read accounts with fetchCredential(rpc, ...) and the other fetch*
helpers. Create the client once and reuse it. The Solana Attestation Service
program is deployed on devnet and mainnet, and Surfpool forks mainnet, so both
tabs below can reach it.
Create a keypair file, print its address, and paste the address into the
Solana Faucet to get devnet SOL:
Terminal