
Security News
The Code You Didn't Write Is Still Yours to Defend
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.
@gotabit/client
Advanced tools
Client for Gotabit.
npm install
npm i @gotabit/client
yarn install
yarn add @gotabit/client
After creating the transaction message we need to send the payload to wallet so it can be signed. With the signature we can broadcast the transaction.
import { GotabitClient } from '@gotabit/client'
import { KeplrWallet } from '@gotabit/wallet-keplr'
const wallet = await KeplrWallet.init('test')
const gotabit = await GotabitClient.init(wallet, 'test')
const accounts = await gotabit.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')
Init client without wallet. You can only use stargateClient and wasmClient without wallet.
const gotabit = await GotabitClient.init(null, 'test')
const wasmClient = await gotabit.wasmClient()
const response = await wasmClient.queryContractSmart(contractAddress, queryMsg)
This is an experimental implementation of ADR-36. Use this feature at your own risk.
import { verifyArbitrary } from '@gotabit/wallet-core'
import { KeplrWallet } from '@gotabit/wallet-keplr'
const wallet = await KeplrWallet.init('test')
const data = JSON.stringify({ title: 'Hello Gotabit' })
const signature = await wallet.signArbitrary(account, data)
const ok = verifyArbitrary(account, data, signature)
Query base extensions
const client = await gotabit.stargateClient()
const queryClient = client.makeQueryClient()
const response = await queryClient.distribution.delegationRewards(
delegatorAddress,
validatorAddress,
)
Query with additional extensions. You can pass multiple extensions as params.
import { setupGovExtension } from '@cosmjs/stargate'
const client = await gotabit.stargateClient()
const queryClient = client.makeQueryClient(setupGovExtension)
const response = await queryClient.gov.vote(proposalId, voterAddress)
Code built with the help of these related projects:
FAQs
The client for Gotabit
The npm package @gotabit/client receives a total of 4 weekly downloads. As such, @gotabit/client popularity was classified as not popular.
We found that @gotabit/client 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.

Security News
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.