🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@injectivelabs/wallet-core

Package Overview
Dependencies
Maintainers
13
Versions
355
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Malware was recently detected in this package.

Affected versions:

1.20.21

@injectivelabs/wallet-core

Core wallet strategy

Source
npmnpm
Version
1.20.21
Version published
Weekly downloads
1.9K
31.24%
Maintainers
13
Weekly downloads
 
Created
Source

🌟 Injective Protocol - Wallet Core

downloads npm-version license

Package to use Wallets on Injective via the wallet strategy.

📚 Installation

pnpm add @injectivelabs/wallet-core

📖 Documentation

To instantiate your MsgBroadcaster, you need to pass it an instance of BaseWalletStrategy. You can specify any strategy you want in the BaseWalletStrategy constructor and pass it to the MsgBroadcaster.

import { Wallet } from '@injectivelabs/wallet-base'
import { BaseWalletStrategy, MsgBroadcaster } from '@injectivelabs/wallet-core'
import { PrivateKeyWalletStrategy } from '@injectivelabs/wallet-private-key'

const strategyArgs: WalletStrategyArguments = {} /** define the args */
const strategyEthArgs: ConcreteEthereumWalletStrategyArgs = {} /** if the wallet is an Ethereum wallet */
const strategies = {
  [Wallet.PrivateKey]: new PrivateKeyWalletStrategy(strategyEthArgs),
}

export const walletStrategy = new BaseWalletStrategy({ ...strategyArgs, strategies })

const broadcasterArgs: MsgBroadcasterOptions = {} /** define the broadcaster args */
export const msgBroadcaster = new MsgBroadcaster({ ...broadcasterArgs, walletStrategy })

Read more and find example usages on our WalletStrategy Docs

📜 Contribution

Contribution guides and practices will be available once there is a stable foundation of the whole package set within the injective-ts repo.

⛑ Support

Reach out to us at one of the following places!

🔓 License

Copyright © 2021 - 2022 Injective Labs Inc. (https://injectivelabs.org/)

Originally released by Injective Labs Inc. under:
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/

 

Powering the future of decentralized finance.

FAQs

Package last updated on 08 Jul 2026

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