Skip to main content

Parameters

chainId
string
default:"bitcoin-testnet"
required
Unique identifier for a blockchain network.
id
number
default:1
required
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"verifychain"
required
JSON-RPC method name.
params
object
Parameters: [checkLevel?, numBlocks?].Positional parameters for verifychain:
  • params[0]: Check level (0-4).
  • params[1]: Number of blocks to check from the tip.

Returns

result
boolean
True if the chain verifies. Example: true.