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

tokenbound-connector

Package Overview
Dependencies
Maintainers
0
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

tokenbound-connector

Connector for using Starknet dapps with your tokenbound accounts

unpublished
latest
npmnpm
Version
0.2.21
Version published
Maintainers
0
Created
Source

Tokenbound Connectkit

ERC-6551 gives NFTs unimaginable capabilities. They empower NFTs to do everything a normal wallet can do. But connecting to accounts and executing transactions might be a little bit more complex, as the __execute__ method can only be called by the owner of the NFT bound to the Tokenbound account.

With this connectorKit, dApps can enable tokenbound accounts to seamlessly connect and use their dApps like every normal account on Starknet.

To get started:

  • Install the tokenbound-connector dependency:
npm install tokenbound-connector
  • Import all neeeded methods:
import { TokenboundConnector, TokenBoundModal, useTokenBoundModal } from "../index";
  • import the existing methods in the useTokenBoundModal hook:
const {
    isOpen,
    openModal,
    closeModal,
    value,
    selectedOption,
    handleChange,
    handleChangeInput,
    resetInputValues,
} = useTokenBoundModal();
  • Create all needed functions, then instantiate the connector:
const tokenbound = new TokenboundConnector({
    tokenboundAddress: value,
    parentAccountId: selectedOption,
});
  • Reference the example dapp for more information.

PS: connector would be made available for easy use from starknetkit.

Keywords

Tokenbound

FAQs

Package last updated on 02 Jul 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