
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@sei-js/core
Advanced tools
A library for Sei written in Typescript.
yarn add @sei-js/core
# or
npm install @sei-js/core
In order to interact with a Sei node, you'll need a wallet to sign transactions. The wallet extensions that are currently supported can be found in SUPPORTED_WALLETS
.
import { connect, SUPPORTED_WALLETS } from '@sei-js/core';
// Connecting to a Keplr wallet
const { connectedWallet, offlineSigner } = await connect('keplr', 'atlantic-2');
The LCD query client can be used to query data via REST endpoints.
import { getQueryClient } from '@sei-js/core';
const queryClient = await getQueryClient(REST_URL);
// Getting the market summary from the Sei dex module
queryClient.seiprotocol.seichain.dex.getMarketSummary(params);
// Getting user balances from the Cosmos bank module
queryClient.cosmos.bank.v1beta1.allBalances({ address });
The signing client can be used to create, sign, and broadcast transactions.
import { getSigningClient } from '@sei-js/core';
const client = await getSigningClient({
rpcEndpoint,
signer, // OfflineSigner
});
The SeiSigningCosmWasmClient
and SeiCosmWasmClient
can be used to interact with CosmWasm smart contracts. Typically, you need the SeiSigningCosmWasmClient
to execute contract messages and the SeiCosmWasmClient
to query contract state, though contract states can also be queried using the signing client.
import { getSigningCosmWasmClient, getCosmWasmClient, connect } from '@sei-js/core';
const cosmWasmClient = await getCosmWasmClient(RPC_URL);
const { offlineSigner } = await connect('keplr', 'atlantic-2');
const signingCosmWasmClient = await getSigningCosmWasmClient(RPC_URL, offlineSigner);
@sei-js/react - A react helper library for common @sei-js/core functions
@sei-js/proto - TypeScript library for Sei protobufs generated using Telescope
FAQs
TypeScript library for front end integrations with Sei
The npm package @sei-js/core receives a total of 1,163 weekly downloads. As such, @sei-js/core popularity was classified as popular.
We found that @sei-js/core demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.