# @gotabit/messages

> Messages generator for Gotabit

Latest version **1.1.27** (published 2023-07-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install @gotabit/messages
pnpm add @gotabit/messages
yarn add @gotabit/messages
bun add @gotabit/messages
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.27 |
| Published | 2023-07-19 |
| First published | 2022-11-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 455.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | new_sunflower, wuchendi, roy_gotabit |

## Links

- npm: https://www.npmjs.com/package/@gotabit/messages
- Repository: https://github.com/gotabit/sdk-ts
- Homepage: https://github.com/gotabit/tree/main/packages/messages
- Issues: https://github.com/gotabit/sdk-ts/issues
- npm.io page: https://npm.io/package/@gotabit/messages

## Dependencies (2)

- [cosmjs-types](https://npm.io/package/cosmjs-types.md) ^0.8.0
- [@cosmjs/encoding](https://npm.io/package/@cosmjs/encoding.md) 0.31.0

## Recent versions

- 1.1.27 (latest) — 2023-07-19
- 1.1.20 — 2022-12-01
- 1.1.19 — 2022-11-25
- 1.1.18 — 2022-11-21
- 1.1.17 — 2022-11-19

## README

# Messages

Message generator for Gotabit.

### Install

npm install

```
npm i @gotabit/messages
```

yarn install

```
yarn add @gotabit/messages
```

### Create a MsgSend message

```ts
import { createMsgSend } from '@gotabit/messages'

const account = 'gio1tseh0grt8j8klrdunpudflvy9lfn3rl50zdpu8'
const toAddress = 'gio1qdgzfy4vta5p43l4urdtmawka3qv2ldh4h0jay'

const msgSend = createMsgSend(account, toAddress, '3', 'ugtb')
```

### Create a MsgGrant message

```ts
import { createMsgGrantBasicAllowance, createMsgSend } from '@gotabit/messages'

const account = 'gio1tseh0grt8j8klrdunpudflvy9lfn3rl50zdpu8'
const toAddress = 'gio1qdgzfy4vta5p43l4urdtmawka3qv2ldh4h0jay'

const msgGrant = createMsgGrantBasicAllowance(account, toAddress, [
  {
    amount: '3',
    denom: 'ugtb',
  },
])
```

---
_Source: https://npm.io/package/@gotabit/messages · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
