🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@gotabit/sdk

Package Overview
Dependencies
Maintainers
3
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gotabit/sdk

JS and TS libs for Gotabit

latest
Source
npmnpm
Version
1.1.29
Version published
Maintainers
3
Created
Source

SDK

The package includes messages, client and wallets.

Install

npm install

npm i @gotabit/sdk

yarn install

yarn add @gotabit/sdk
import { createMsgSend, KeplrWallet, GotabitClient } from '@gotabit/sdk'

const wallet = await KeplrWallet.init('test')

const gotabit = await GotabitClient.init(wallet, 'test')
const accounts = await client.wallet.getAccounts()

const account = accounts.[0].address

const client = await gotabit.signStargateClient()

const toAddress = 'gio1qdgzfy4vta5p43l4urdtmawka3qv2ldh4h0jay'
const msgSendtoken = createMsgSend(account, toAddress, '3', 'ugtb')

const result = await client.signAndBroadcast(
  account,
  [msgSendtoken],
  'auto',
)

Credits

Code built with the help of these related projects:

  • WalletConnect/cosmos-wallet Cosmos Wallet with Direct and Amino signing.
  • @walletconnect/qrcode-modal QR Code Modal for WalletConnect
  • @walletconnect/sign-client Sign Client for WalletConnect Protocol
  • keplr-extension Keplr is a browser extension wallet for the Inter blockchain ecosystem.
  • cosmos/cosmjs CosmJS is the Swiss Army knife to power JavaScript based client solutions ranging from Web apps/explorers over browser extensions to server-side clients like faucets/scrapers in the Cosmos ecosystem.
  • @osmonauts/telescope a "babel for the Cosmos", Telescope is a TypeScript Transpiler for Cosmos Protobufs.
  • osmojs makes it easy to compose and broadcast Osmosis and Cosmos messages, with all of the proto and amino encoding handled for you.
  • evmosjs JS and TS libs for Evmos.
  • react React is a JavaScript library for building user interfaces.
  • zustand A small, fast and scalable bearbones state-management solution using simplified flux principles. Has a comfy api based on hooks, isn't boilerplatey or opinionated.

FAQs

Package last updated on 21 Dec 2023

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