osmojs
    TypeScript icon, indicating that this package has built-in type declarations

    0.4.56 • Public • Published

    OsmoJS 🔭

    usage

    npm install osmojs

    Osmosis Stargate Client

    Use getSigningOsmosisClient to get your SigningStargateClient, with the Osmosis protobuf messages full-loaded:

    import { getSigningOsmosisClient } from 'osmojs';
    import { SigningStargateClient } from "@cosmjs/stargate";
    
    const client: SigningStargateClient = await getSigningOsmosisClient({
      rpcEndpoint: rpcEndpoint,
      signer // OfflineSigner
    });

    Composing Messages

    NOTE: this API is in alpha, and will be rapidly changing over the coming weeks. Please send us feedback!

    import * as gamm from 'osmojs/main/proto/osmosis/gamm/v1beta1/tx.registry';
    import { coin } from '@cosmjs/amino';
    const { swapExactAmountIn } = gamm.MessageComposer.withTypeUrl;
    
    const msg = swapExactAmountIn({
      sender,
      routes,
      tokenIn: coin(amount, denom),
      tokenOutMinAmount
    });

    Advanced Usage

    documentation

    Disclaimer

    AS DESCRIBED IN THE OSMOSIS LICENSES, THE SOFTWARE IS PROVIDED “AS IS”, AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND.

    No developer or entity involved in creating Telescope will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the Telescope code or Telescope CLI, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value.

    Keywords

    none

    Install

    npm i osmojs

    DownloadsWeekly Downloads

    88

    Version

    0.4.56

    License

    SEE LICENSE IN LICENSE

    Unpacked Size

    11.9 MB

    Total Files

    975

    Last publish

    Collaborators

    • pyramation