Original contributor: muxueqz
This is a single file utility to adopt BSN service to standard CKB node rpc. It support both CKB node rpc, and ckb-indexer rpc calls.
Usage:
$ python3 ./bsn-proxy.py --bsn-url 'https://hk.bsngate.com/api/<your-app-id>/Nervos-Mainnet/rpc' --api-key '<your-api-key>'
If everything goes well, you will have a ckb node rpc server at http://localhost:8114/rpc
, adn a ckb-indexer rpc server at http://localhost:8114/indexer
.
Please register BSN global to obtain a free or high performance plan.