Nothing Particularly Magnificent

    @klaytn/kaikas-web3-provider
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.3 • Public • Published

    Kaikas Web3 Provider

    To integrate Kaikas Web extension wallet into Dapps that utilize ethereum based APIs, this package provides functions that handle eth namespace APIs using the corresponding klay namespace APIs.

    Installation

    npm install --save @klaytn/kaikas-web3-provider
    # OR
    yarn add @klaytn/kaikas-web3-provider

    Example (Web3Modal)

    Using this Provider with the Web3Modal library, users can easily integrate Kaikas as like other wallets.

    import Web3 from "web3";
    import Web3Modal from "web3modal";
    import { KaikasWeb3Provider } from "@klaytn/kaikas-web3-provider"
    
    const providerOptions = {
      kaikas: {
        package: KaikasWeb3Provider // required
      }
    };
    
    web3Modal = new Web3Modal({
        providerOptions: providerOptions //required
    });
    
    const provider = await web3Modal.connect();
    
    const web3 = new Web3(provider);

    Keywords

    none

    Install

    npm i @klaytn/kaikas-web3-provider

    DownloadsWeekly Downloads

    27

    Version

    1.0.3

    License

    ISC

    Unpacked Size

    32.7 kB

    Total Files

    12

    Last publish

    Collaborators

    • klaytn-devops
    • klaytndev