$ 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";
-
This function signs the input message.
-
message
(string): text to be signed by the wallet.
- Object
{ walletAddress: string; // signing wallet address message: string; // input string or text signature: string; // signed message(input) }
import { unisat } from "ordbt-utility"; try { const response = await unisat.signMessage("add your input here"); } catch (error) { console.log(error); }
-
-
This function signs the input message.
-
message
(string): text to be signed by the wallet.
- Object
{ walletAddress: string; // signing wallet address message: string; // input string or text signature: string; // signed message(input) }
import { hiro } from "ordbt-utility"; try { const response = await hiro.signMessage("add your input here"); } catch (error) { console.log(error); }
-