Skip to main content
1

Get an API Key

See Credentials & Authentication to request a Pilot API key.
2

Set Your API Key

Store your API key in an environment variable.
export WALLETSUITE_API_KEY="your_api_key"
If you are using an .env file, add:
WALLETSUITE_API_KEY=your_api_key
3

Initialize the Client

Create a client instance and pass your API key and environment.
import { WalletSuiteSDK } from "@walletsuite/wallet-sdk"

const sdk = new WalletSuiteSDK({
  apiKey: process.env.WALLETSUITE_API_KEY!,
  env: "prod",
})
Notes:
  • The SDK automatically sends the X-API-KEY header on every request
  • All requests are scoped to your organization
4

Make Your First API Call

Call an endpoint from the SDK client. The exact method names depend on the SDK version, but usage follows this pattern.
async function main() {
  const result = await sdk.api.getLatestBlocks("ethereum");
  console.log(JSON.stringify(result, null, 2));
}

main().catch(console.error);
{
  "number": 24743234,
  "hash": "0x69cc379e94acc8565250e834b36baf263313afada5cd8ab712feed4038408401",
  "parentHash": "0xf7620978e51a6a40d256fae31b26cbb008b537bbc1e779aad37a621597fc3ddb",
  "timestamp": 1774546199000
}

Next Steps

See it working

End-to-end recipes backed by the SDK: