A collection of Python scripts for interacting with an elements node (Bitcoin Liquid Network) with RPC Credentials.
Go to file
2023-11-08 19:02:34 -05:00
.gitignore list balance fixed 2023-11-08 16:49:44 -05:00
createWallet.py create wallet now prompts to name it,get address now lists wallets and aks for a selection 2023-11-08 15:40:42 -05:00
getAddress.py create wallet now prompts to name it,get address now lists wallets and aks for a selection 2023-11-08 15:40:42 -05:00
issueAsset.py first commit 2023-11-07 22:08:49 -05:00
listBalance.py list balance fixed 2023-11-08 16:49:44 -05:00
listUTXO.py added wallet selection to select UTXO 2023-11-08 16:42:36 -05:00
listWallets.py first commit 2023-11-07 22:08:49 -05:00
README.md first commit 2023-11-07 22:08:49 -05:00
submitTxn.py first commit 2023-11-07 22:08:49 -05:00

Elements Node Python RPC Tools

This repository contains a collection of simple Python tools for interacting with an Elements node using RPC credentials. These scripts allow you to perform various tasks such as checking balances, sending assets, creating wallets, and more.

Prerequisites

Before using these scripts, make sure you have the following prerequisites installed:

  • Python (3.x recommended)
  • The python-bitcoinrpc library for RPC communication.

You can install the required library using pip:

pip install python-bitcoinrpc

Usage

Clone this repository to your local machine:

git clone https://happytavern.co/oceanslim/elements.py.git
cd elements.py

Configuration

Create a configuration file, rpc_config.json, and specify your RPC credentials and node information:

{
  "rpc_host": "xx.x.xx.xxx",
  "rpc_port": 7041,
  "rpc_user": "rpc_user",
  "rpc_password": "rpc_password"
}

Modify the scripts to read the RPC configuration from the rpc_config.json file. You can customize the configuration as needed.

License

This repository is provided under the MIT License. Feel free to use, modify, and distribute these scripts as needed. Contributions and improvements are welcome. ❤️