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

1.0.9 • Public • Published

Installation

$ npm install ordbt-utility
$ yarn add ordbt-utility

Once the package is installed, you can import the required wallet using:

import { unisat, hiro } from "ordbt-utility";

Unisat wallet supported methods

  • Function: signMessage

    This function signs the input message.

    Parameters:

    • message (string): text to be signed by the wallet.

    Returns:

    • Object
      { walletAddress: string; // signing wallet address
        message: string; // input string or text
        signature: string; // signed message(input)
       }
      

    Example:

    import { unisat } from "ordbt-utility";
    
    try {
      const response = await unisat.signMessage("add your input here");
    } catch (error) {
      console.log(error);
    }

Hiro wallet supported methods

  • Function: signMessage

    This function signs the input message.

    Parameters:

    • message (string): text to be signed by the wallet.

    Returns:

    • Object
      { walletAddress: string; // signing wallet address
        message: string; // input string or text
        signature: string; // signed message(input)
      }
      

    Example:

    import { hiro } from "ordbt-utility";
    try {
      const response = await hiro.signMessage("add your input here");
    } catch (error) {
      console.log(error);
    }

Readme

Keywords

none

Package Sidebar

Install

npm i ordbt-utility

Weekly Downloads

1

Version

1.0.9

License

MIT

Unpacked Size

45.9 kB

Total Files

26

Last publish

Collaborators

  • ankit-orbt