1.0.9 • Published 2 years ago

ordbt-utility v1.0.9

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years 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

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago