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

0.1.15 • Public • Published

OrdConnect

OrdConnect is a JavaScript library for interacting with wallet management and Bitcoin transactions.

Installation

You can install OrdConnect via npm or yarn:

npm install ordconnect
# or
yarn add ordconnect

Usage

Get Wallet Manager

import { WalletManager } from 'ord-connect';

Sending Bitcoin (BTC)

send(amount: number, address: string, session: Session);

Session: {
        cardinalAddress: string,
        id: string,
        ordinalAddress: string,
        wallet: string,
} | null

Signing PSBTs

signPsbt(params: Params)

Params: {
  psbtBase64: string,
  inputsToSign: [{
    address: string,
    signingIndexes: number[], // int array of indexes to sign
  }],
  broadcast: boolean,
}

Bitcoin Kit Functions

All the Bitcoin-related functions available in the btckit library are also accessible through this library. Please refer to the btckit documentation for detailed information on these functions.

License

This project is licensed under the MIT License.

Contributing

Contributions are welcome!

Issues

If you encounter any issues or have suggestions for improvement, please open an issue on the GitHub repository.

Credits

OrdConnect is developed and maintained by Michael Shimeles.

Acknowledgments

Special thanks to the developers of the btckit library for their contributions and support.

Package Sidebar

Install

npm i ordconnect

Weekly Downloads

3

Version

0.1.15

License

ISC

Unpacked Size

113 kB

Total Files

98

Last publish

Collaborators

  • michaelshimeles