ðKinto Wallet Web SDK
This SDK allows you to create web applications that are connected to Kinto.
Last updated
This SDK allows you to create web applications that are connected to Kinto.
Last updated
Link: https://github.com/KintoXYZ/kinto-web-sdk
Kinto SDK is a JavaScript library that allows applications to connect to the Kinto Wallet. Kinto is an Ethereum Layer 2 (L2) solution designed to provide fast and cost-efficient transactions. This SDK provides methods to connect a Kinto Wallet, send transactions, and create new wallets.
The Kinto SDK has been designed with the following principles in mind:
No Dependencies: The SDK is built without external dependencies to minimize its size and maximize security. This ensures that it doesn't rely on any third-party libraries.
No UI: The SDK does not provide any user interface components. This allows app developers the flexibility to design their own UI and remain unopinionated about the user experience.
No Web3 Packages: The SDK is agnostic to specific Ethereum libraries. You can use any library you prefer, such as viem
, ethers
, or web3js
. The SDK itself doesn't require any of these packages.
You can install the Kinto SDK via npm:
Before using the Kinto SDK, ensure you have completed the following steps:
Kinto Wallet: You need to have a Kinto wallet. Create an account by visiting Kinto Onboarding.
Developer Account: Create a developer account, deploy a contract, and create the application. Use your main contract address as the app address. Visit Kinto Developers to get started.
To use the Kinto SDK, you need to initialize it with your application's address.
To connect to the Kinto Wallet, use the connect
method. This method opens a modal for the user to connect their wallet.
To send transactions, use the sendTransaction
method. This method accepts an array of transaction objects.
To create a new wallet, use the createNewWallet
method. This method opens a popup for the user to create a new wallet in Kinto website. Alternatively, you can instruct users to visit Kinto to create an account.
connect()
Starts a connection with a logged-in Kinto Wallet and returns the account information.
Returns: Promise<KintoAccountInfo>
sendTransaction(txs: TxCall[]): Promise
Sends transactions through the Kinto Wallet.
txs
: An array of transaction objects.
Returns: Promise<void>
createNewWallet(): Promise
Opens a popup for the user to create a new wallet.
Returns: Promise<void>
AppMetadata
KintoAccountInfo
TxCall
Contributions are welcome! Please open an issue or submit a pull request on GitHub.
This project is licensed under the MIT License. See the LICENSE file for details.
For more information about Kinto, visit docs.kinto.xyz.