0.0.0-internal-20230301221537 • Published 3 years ago

@sei-js/core v0.0.0-internal-20230301221537

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@sei-js/core

A library for Sei written in Typescript.

Installation

yarn add @sei-js/core or npm install @sei-js/core

Modules

ModuleLink
Walletlearn more
Clientlearn more

Wallet

import { connect, SUPPORTED_WALLETS } from '@sei-js/core/wallet

PropertyTypeDescription
connect()(walletKey: string) => { accounts, offlineSigner}Async function to connect to input wallet
SUPPORTED_WALLETSstring[]A list of currently supported wallets which can be passed to connect()
getChainSuggest(chainId?: string, restUrl?: string, rpcUrl?: string) -> objectA pre defined object to be passed to a wallets experimentalChainSuggest function. Takes optional parameters for chainId, restUrl, and rpcUrl.

Client

Query Client

The query client is used to query data from modules via REST endpoints.

import { QueryClient } from '@sei-js/core';

const queryClient = await QueryClient.getQueryClient(rpcEndpoint);

// 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})

Signing Client

The signing client provides a way to sign and broadcast transactions on Sei.

Use getSigningClient to get your SigningStargateClient, with the Sei proto/amino messages loaded in.

import { SigningClient } from '@sei-js/core';

const client = await SigningClient.getSigningClient({
  rpcEndpoint,
  signer // OfflineSigner
});

Related packages

@sei-js/react - A react helper library for common @sei-js/core functions

@sei-js/proto - TypeScript library for Sei protobufs generated using Telescope

3.2.1

2 years ago

3.2.0

2 years ago

3.1.3

2 years ago

3.1.2

2 years ago

0.0.0

2 years ago

2.0.0

2 years ago

1.5.0

2 years ago

3.1.1

2 years ago

3.1.0

2 years ago

1.4.1

2 years ago

3.0.4

2 years ago

3.0.3

2 years ago

3.0.2

2 years ago

3.0.1

2 years ago

3.0.5

2 years ago

3.0.0

2 years ago

1.4.0

2 years ago

1.3.6

2 years ago

1.3.5

2 years ago

1.3.4

2 years ago

1.3.3

3 years ago

1.3.2

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.6

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.0.44

3 years ago

1.0.43

3 years ago

1.0.41

3 years ago

1.0.19

3 years ago

1.0.18

3 years ago

1.0.39

3 years ago

1.0.17

3 years ago

1.0.38

3 years ago

1.0.16

3 years ago

1.0.40

3 years ago

1.0.22

3 years ago

1.0.20

3 years ago

1.0.26

3 years ago

1.0.25

3 years ago

1.0.24

3 years ago

1.0.23

3 years ago

1.0.29

3 years ago

1.0.28

3 years ago

1.0.27

3 years ago

1.0.33

3 years ago

1.0.37

3 years ago

1.0.36

3 years ago

1.0.35

3 years ago

1.0.34

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago