1.0.9 • Published 7 months ago

ordbt-utility v1.0.9

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

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);
    }
1.0.2

7 months ago

1.0.9

7 months ago

1.0.8

7 months ago

1.0.7

7 months ago

1.0.6

7 months ago

1.0.5

7 months ago

1.0.4

7 months ago

1.0.3

7 months ago

1.0.1

8 months ago

1.0.0

10 months ago