Quick Start
First thing you need to do is to obtain an access token from the Kriptonio dashboard and create a new instance of the SDK.
import { KriptonioSdk, ChainId } from '@kriptonio/sdk';
const sdk = new KriptonioSdk({
accessToken: 'your-access-token',
});
Now you are ready to use the SDK to interact with the Kriptonio API. Let's generate a simple wallet.
import { KriptonioSdk, ChainId } from '@kriptonio/sdk';
const sdk = new KriptonioSdk({
accessToken: 'your-access-token',
});
const wallet = await sdk.wallet.generate({
chainId: ChainId.Polygon,
type: 'kernel',
});
Congrats! You have just created a new wallet ready to be used on the Polygon network.