Socket
Book a DemoInstallSign in
Socket

@palomachain/msg-reader

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@palomachain/msg-reader

Convert common paloma.js msg to a sentence

latest
npmnpm
Version
3.0.1
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

@terra-money/msg-reader

Convert common terra.js msg to a sentence

Installation

npm i @terra-money/msg-reader

Example codes

import { Coins, Coin, MsgSend } from "@palomachain/paloma.js"
import { readMsg } from "@terra-money/msg-reader"

const coins = new Coins([new Coin("uluna", 1000000), new Coin("ukrw", 1000000)])

const address = "terra1x46rqay4d3cssq8gxxvqz8xt6nwlz4td20k38v"
const recipient = "terra17lmam6zguazs5q5u6z5mmx76uj63gldnse2pdp"

const msg = new MsgSend(address, recipient, [coin])

console.log(readMsg(msg))
// Send 1 Luna to terra17lmam6zguazs5q5u6z5mmx76uj63gldnse2pdp

FAQs

Package last updated on 27 Jul 2022

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.