Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

anonymous-test

Package Overview
Dependencies
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

anonymous-test

Houses the Tokenbound Connectkit.

Source
npmnpm
Version
0.0.4
Version published
Weekly downloads
7
-30%
Maintainers
0
Weekly downloads
 
Created
Source

🕹️ Tokenbound ConnectKit

Houses the Tokenbound Connectkit.

The Tokenbound Connectkit enables users connect to existing Starknet dApps with their Tokenbound accounts.

Installation

Install tokenbound connectkit with npm, pnmp or yarn

$  npm install tokenbound-connectkit

# or with yarn:
$ yarn add tokenbound-connectkit

Imports

After installation, we get access to different methods, such as connect, disconnect, etc which we should import for use in our application:

import { connect, disconnect } from "tokenbound-connectkit"

Establishing a connection

To establish a wallet connection, we need to call the connect method which was imported earlier like this:

const wallet = await connect()
const connectTBA = async () => {
   try {
     const { wallet } = await connect({
       tokenboundOptions: {
         chainId: constants.NetworkName.SN_SEPOLIA,
       }
     });
   } catch (e) {
     console.error(e)
     alert((e as any).message)
   }
 }

Disconnect a wallet

await disconnect()

📕 Guides

Guides can be found here

📜 License

Copyright (c) 2024

Licensed under the MIT license.

Keywords

starknet

FAQs

Package last updated on 11 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts