Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
@gnolang/tm2-js-client
Advanced tools
@gnolang/tm2-js-client
is a JavaScript/TypeScript client implementation for Tendermint2-based chains. It is designed
to make it
easy for developers to interact with TM2 chains, providing a simplified API for account and transaction management. By
doing all the heavy lifting behind the scenes, @gnolang/tm2-js-client
enables developers to focus on what really
matters -
building their dApps.
Provider
Wallet
To install @gnolang/tm2-js-client
, use your preferred package manager:
yarn add @gnolang/tm2-js-client
npm install @gnolang/tm2-js-client
A Provider
is an interface that abstracts the interaction with the Tendermint2 chain, making it easier for users to
communicate with it. Rather than requiring users to understand which endpoints are exposed, what their return types are,
and how they are parsed, the Provider
abstraction handles all of this behind the scenes. It exposes useful API methods
that users can use and expects concrete types in return.
Currently, the @gnolang/tm2-js-client
package provides support for two Provider implementations:
JSON-RPC Provider
: executes each call as a separate HTTP RPC call.WS Provider
: executes each call through an active WebSocket connection, which requires closing when not needed
anymore.A Signer
is an interface that abstracts the interaction with a single Secp256k1 key pair. It exposes methods for
signing data, verifying signatures, and getting metadata associated with the key pair, such as the address.
Currently, the @gnolang/tm2-js-client
package provides support for two Signer
implementations:
Key
: a signer that is based on a raw Secp256k1 key pair.Ledger
: a signer that is based on a Ledger device, with all interaction flowing through the user's device.A Wallet
is a user-facing API that is used to interact with an account. A Wallet
instance is tied to a single key
pair and essentially wraps the given Provider
for that specific account.
A wallet can be generated from a randomly generated seed, a private key, or instantiated using a Ledger device.
Using the Wallet
, users can easily interact with the Tendermint2 chain using their account without having to worry
about account management.
For the sake of keeping the README short and sweet, you can find the documentation and usage examples for the package here.
@gnolang/tm2-js-client
is, and will continue to be, licensed under Apache 2.
It is made by the community, for the community, and any contribution is greatly appreciated.
A special thank-you goes out to the Onbloc team, building Adena wallet and other gno projects, whose extended supported made this package possible.
FAQs
Tendermint2 JS / TS Client
The npm package @gnolang/tm2-js-client receives a total of 153 weekly downloads. As such, @gnolang/tm2-js-client popularity was classified as not popular.
We found that @gnolang/tm2-js-client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.