npm.io
0.4.3 • Published 2 years ago

@kriptonio/sdk

Licence
MIT
Version
0.4.3
Deps
6
Size
632 kB
Vulns
31
Weekly
0
Stars
2

Kriptonio SDK

Javascript SDK for interacting with the Kriptonio Platform.

Supports browser, server and react-native.

Installation

npm install @kriptonio/sdk

Usage

import { ChainId, KriptonioSdk } from '@kriptonio/sdk';
 
const sdk = new KriptonioSdk({
  accessToken: 'your-access-token',
});
 
const wallet = await sdk.wallet.generate({
  chainId: ChainId.BaseSepolia,
  type: 'kernel',
});
 
const hash = await wallet.sendTransaction({
  to: wallet.address,
  value: 0n,
});

Docs

https://docs.kriptonio.com

API Reference

https://github.com/kriptonio/sdk/tree/main/packages/sdk/docs