Skip to content

1oid/cat20-rpc-registry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cat20-rpc-registry

register wallet to RPC Node

Install

Download

git clone https://github.com/1oid/cat20-rpc-registry

install dependencies

cd cat20-rpc-registry
yarn install

Commands

Show usage

yarn cli -h
Usage: approve [options]

Fractal-Bitcoin wallet register

Options:
  -V, --version                          output the version number
  -n, --name [Wallet name 钱包名, 可以在config.json中找到]               --name
  -w, --wallet [Wallet address, 钱包地址, 通过 yarn cli wallet address获取]          --wallet
  -r, --rpc [RPC Node IP, rpc ip, 只需要IP部分]                --rpc
  -c, --config [Generate config Enable, 如果开启, 会输出config配置]  --config (default: false)
  -h, --help                             display help for command

Register the wallet to RPC Node

yarn cli -n cat-a103ca57 -w bc1pkxvkymgm0wchrr5s4fqrd8vepghquctuwvj92gd8q7vs2pdrd2rst4q65r -r 127.0.0.1

[CREATE] create successfully.
[IMPORT] import successfully.

replace the RPC Node IP to your config.json

Register the wallet to RPC Node and generate config.json

yarn cli -n cat-a103ca57 -w bc1pkxvkymgm0wchrr5s4fqrd8vepghquctuwvj92gd8q7vs2pdrd2rst4q65r -r 127.0.0.1 -c

[CREATE] create successfully.
[IMPORT] import successfully.

🌟===== write output to your cofig.json =====
{
  network: 'fractal-mainnet',
  tracker: 'http://127.0.0.1:3000',
  dataDir: '.',
  maxFeeRate: 0,
  rpc: {
    url: 'http://127.0.0.1:8332',
    username: 'bitcoin',
    password: 'opcatAwesome'
  }
}

Commands for nodeBlockVerify

Show Usage

yarn verify -h 

Usage: nodeblock [options]

Fractal-Bitcoin Tracker Node BlockHeight Check

Options:
  -V, --version             output the version number
  -f, --file [RpcNode IPs]  RpcNodeIPs file, only IP
  -r, --rpc [RPC Node IP]   Rpc IP only
  -h, --help                display help for command

Check from RPC Nodes File

jrpc.txt must only contains ip

example:
    127.0.0.1
    1.x.x.x
yarn verify -f jrpc.txt

Check for RPC Node

yarn verify -r 127.0.0.1

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors