Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/btc415/btc-ordinal

Inscriptions and BRC20 Rust library
https://github.com/btc415/btc-ordinal

bitcoin ordinals ordinals-nft rust rust-lang

Last synced: about 1 month ago
JSON representation

Inscriptions and BRC20 Rust library

Awesome Lists containing this project

README

        

# OrdConnect

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

## Installation

You can install OrdConnect via npm or yarn:

```bash
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.

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