@kriptonio/sdk-viem
v0.4.3
Published
Kriptonio SDK Viem Plugin
Downloads
1
Readme
Kriptonio SDK Viem Integration
Kriptonio SDK integration with popular Viem web3 library.
Supports browser, server and react-native.
Installation
npm install viem @kriptonio/sdk @kriptonio/sdk-viem
Usage
import { ChainId, KriptonioSdk } from '@kriptonio/sdk';
import { createKriptonioClient } from '@kriptonio/sdk-viem';
const sdk = new KriptonioSdk({
accessToken: 'your-access-token',
});
const wallet = await sdk.wallet.generate({
chainId: ChainId.BaseSepolia,
type: 'kernel',
});
const client = createKriptonioClient(wallet);
const hash = await client.sendTransaction({
to: client.account.address,
value: 0n,
});
Docs
https://docs.kriptonio.com/sdk/integrations/viem