ordbt-utility
v1.0.9
Published
``` $ npm install ordbt-utility $ yarn add ordbt-utility
Downloads
9
Readme
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); }