Skip to content
GitHub

Starlight components

Starlight has a number of built-in components that are useful for documentation sites.

Synced tabs

In the future, when our Open Payments SDK has been ported to various languages, we would probably want to show the same feature in different languages and synced tabs might be a good way to present those code snippets.

Initialize Open Payments client:

const client = await createAuthenticatedClient({
walletAddressUrl: WALLET_ADDRESS,
privateKey: PRIVATE_KEY_PATH,
keyId: KEY_ID,
});

Get wallet address:

const walletAddress = await client.walletAddress.get({
url: WALLET_ADDRESS,
});