BSVLite
A lightweight drop-in replacement for bitcoin-sv
Introduction
BSVLite offers the key services of a full bitcoin-sv node at the fraction of the cost.
In 2022, the recommended specifications for running a bitcoin-sv node in production are:
10 core 20 thread CPU or more preferred
64GB of RAM + 64GB Swap
1Gbit+ Internet connectivity (up and down)
The cost of running a server with these specifications is becoming prohibitive for many and many companies do not have dedicated people to maintain and manage Bitcoin nodes.
Despite there being a number of APIs available to interact with the BSV blockchain, many application developers need or prefer to run their own node. BSVLite is a drop-in replacement for bitcoin-sv that you run on your own infrastructure and it is seen and behaves like a full node instance. However, because it interacts directly with Taal's production nodes, it can run on a much less provisioned server.
Installation
You can download a tarball of BSVLite from https://cdn.taal.com/bsvlite/
After download do the following:
The start script start.sh
ensures that BSVLite will be launched at startup. The stop script stop.sh
removes BSVLite from the startup applications.
Mac version
Before using the script start.sh
, it has to be edited. Replace this line <string>$DIR/bsvlite</string>
by either <string>$DIR/bsvlite_arm64</string>
for ARM CPU-architecture or <string>$DIR/bsvlite_amd64</string>
for AMD CPU-architecture.
Settings
Out of the box, BSVLite runs an RPC and REST server on port 8332 and a ZMQ server on port 28332. All settings can be modified by creating and editing the settings.conf
file which sits in the same folder as the BSVLite binary.
Possible settings are:
Upon executing BSVLite, the program will additionally start a web application at URL http://localhost:9400/ which allows to do changes to the settings.
Before BSVLite can be used, a BSVLite-enabled API key has to be added in the settings. This can be done by either editing the API key on the line starting with apiKey=
in settings.conf
or by changing the setting on the web application.
Getting an API Key (current public beta)
Please contacts sales https://www.taal.com/contact/
Registers on Taal Platform and obtain mainnet key
Taal enables customer’s mainnet key for bitcoin - BSVLite
Download BSV Lite from https://cdn.taal.com/bsvlite
Adjust BSVLite settings and add mainnet API key
Integrate with your application
Running BSVLite
RPC interface
Once BSVLite is running, you can interface with it using the bitcoin-sv CLI:
Or cURL:
or using cURL with jq to extract the result field:
The following node commands can be used with BSVLite:
getbestblockhash
getblockchaininfo
getblockcount
getblockhash
getblockheader
getblockstats
getblockstatsbyheight
getchaintips
getchaintxstats
getdifficulty
getmempoolancestors
getmempooldescendants
getmempoolentry
getmempoolinfo
getmerkleproof
getmerkleproof2
getrawmempool
getrawnonfinalmempool
gettxout
gettxoutproof
gettxouts
gettxoutsetinfo
verifymerkleproof
verifytxoutproof
decoderawtransaction
decodescript
getrawtransaction
getnetworkinfo
getinfo
help
REST interface
BSVLite also exposes REST endpoints. A more detailed description of these endpoints can be found here.
Examples:
The REST endpoint /rest/block/*
can not be used.
Sending raw transactions
To send raw transactions, please see Transaction Processing https://app.gitbook.com/o/oKs2jhJRmplTxslrCdPt/s/yfAtaTqtkuE86sIuMiYD/~/changes/VpOhwUcdK2PJHY7irGZh/core-products/transaction-processing/taal-transaction-endpoints
Last updated