Skip to Content
ReferenceRPC Reference

RPC Reference

Tidecoin Core exposes the full Bitcoin Core v30 JSON-RPC surface plus Tidecoin-specific commands for PQHD wallet management (setpqhdpolicy, listpqhdseeds, importpqhdseed, setpqhdseed, removepqhdseed) and AuxPoW merged mining (createauxblock, submitauxblock, getauxblock).

This page is the command reference. It is not the RPC deployment guide; bind, authentication, firewalling, and service-account policy belong in RPC Security. Integration patterns belong in RPC Integration Patterns.

Calling RPC

Local CLI call:

tidecoin-cli getblockchaininfo

Wallet RPC call:

tidecoin-cli -rpcwallet="<wallet>" listpqhdseeds

Raw JSON-RPC shape:

{ "jsonrpc": "1.0", "id": "client", "method": "getblockchaininfo", "params": [] }

Tidecoin-specific command index

CommandCategoryScopePurpose
createauxblockMiningNode RPCCreate an AuxPoW candidate block for external merge-mining.
submitauxblockMiningNode RPCSubmit solved AuxPoW for a candidate created by createauxblock.
getauxblockWallet/miningWallet RPCWallet-assisted create/submit AuxPoW flow.
setpqhdpolicyWalletWallet RPCSet default PQ signature scheme policy for receive and change addresses.
listpqhdseedsWalletWallet RPCList PQHD seeds tracked by a wallet.
importpqhdseedWalletWallet RPCImport a 32-byte PQHD master seed.
setpqhdseedWalletWallet RPCSelect default PQHD seed IDs for receive and change derivation.
removepqhdseedWalletWallet RPCRemove a non-default seed not referenced by wallet descriptors.

AuxPoW RPCs

AuxPoW RPCs are implemented for merged-mining workflows. On mainnet, AuxPoW is built but not active while mainnet nAuxpowStartHeight remains disabled. On testnet, AuxPoW is active from block 1000. On regtest, it is active from genesis. See Activation Status.

createauxblock

Create a merge-mining candidate with an explicit Tidecoin payout address.

tidecoin-cli createauxblock "<tidecoin_address>"

Arguments:

NameTypeRequiredDescription
addressstringYesCoinbase payout address for the candidate block.

Result:

FieldTypeDescription
hashhex stringHash of the created block.
chainidnumberAuxPoW chain ID for the block. Tidecoin uses chain ID 8.
previousblockhashhex stringPrevious block hash.
coinbasevaluenumberCoinbase value in satoshis.
bitsstringCompressed target.
heightnumberCandidate block height.
_targethex stringDeprecated reversed-byte-order target.

Common failures:

ErrorMeaning
RPC_INVALID_ADDRESS_OR_KEY (-5)The payout address is not a valid Tidecoin address.
RPC_CLIENT_NOT_CONNECTED (-9)The node does not have peer connectivity when connectivity is required.
RPC_CLIENT_IN_INITIAL_DOWNLOAD (-10)The node is still in initial block download.
RPC_VERIFY_ERROR (-25) or RPC_VERIFY_REJECTED (-26)Candidate creation or validation failed.

submitauxblock

Submit solved AuxPoW for a block created by createauxblock.

tidecoin-cli submitauxblock "<block_hash>" "<auxpow_hex>"

Arguments:

NameTypeRequiredDescription
hashhex stringYesHash returned by createauxblock.
auxpowhex stringYesSerialized AuxPoW data.

Result:

TypeDescription
booleantrue if the solved AuxPoW was accepted, otherwise false.

getauxblock

Wallet-assisted AuxPoW flow. Without arguments it creates a candidate using a wallet-derived coinbase script. With hash and auxpow, it submits solved AuxPoW.

Create:

tidecoin-cli -rpcwallet="<wallet>" getauxblock

Submit:

tidecoin-cli -rpcwallet="<wallet>" getauxblock "<block_hash>" "<auxpow_hex>"

Arguments:

NameTypeRequiredDescription
hashhex stringNoBlock hash to submit. Must be paired with auxpow.
auxpowhex stringNoSerialized AuxPoW data. Must be paired with hash.

Result without arguments is the same candidate object as createauxblock. Result with arguments is a boolean acceptance result, the same shape as submitauxblock.

Requirements:

  • A wallet must be loaded.
  • Private keys must be enabled for that wallet.
  • The command is useful only where AuxPoW is active or being tested.

PQHD wallet RPCs

PQHD wallet RPCs require a loaded wallet. Use -rpcwallet="<wallet>" when more than one wallet is loaded.

Scheme inputs

Commands that accept a scheme accept known scheme names or numeric prefix bytes.

SchemeCommon input formsPrefix
Falcon-512falcon-512, falcon5127
Falcon-1024falcon-1024, falcon10248
ML-DSA-44ml-dsa-44, mldsa449
ML-DSA-65ml-dsa-65, mldsa6510
ML-DSA-87ml-dsa-87, mldsa8711

Mainnet activation matters. Falcon-512 is live on mainnet; additional schemes are implemented but gated by AuxPoW activation on mainnet.

setpqhdpolicy

Set default PQ scheme policy for new receive and change addresses.

tidecoin-cli -rpcwallet="<wallet>" setpqhdpolicy "<receive_scheme>" "<change_scheme>"

Arguments:

NameTypeRequiredDescription
receive_schemestringOptionalDefault scheme for receive addresses.
change_schemestringOptionalDefault scheme for change outputs.

At least one argument must be provided.

Examples:

tidecoin-cli -rpcwallet="main" setpqhdpolicy "falcon-512" "falcon-512" tidecoin-cli -rpcwallet="test" setpqhdpolicy "ml-dsa-65" "ml-dsa-65"

Result:

FieldTypeDescription
receive_scheme_idnumberSelected receive scheme prefix byte.
receive_scheme_namestringSelected receive scheme name.
change_scheme_idnumberSelected change scheme prefix byte.
change_scheme_namestringSelected change scheme name.

listpqhdseeds

List PQHD seeds tracked by the wallet.

tidecoin-cli -rpcwallet="<wallet>" listpqhdseeds

Result:

FieldTypeDescription
seed_idhex stringSeedID32 identifier.
created_atUnix timestampSeed creation time.
encryptedbooleanWhether the seed is encrypted in wallet storage.
default_receivebooleanWhether this seed is the default receive seed.
default_changebooleanWhether this seed is the default change seed.

importpqhdseed

Import a 32-byte PQHD master seed. Re-importing an existing seed is idempotent.

tidecoin-cli -rpcwallet="<wallet>" importpqhdseed "<32_byte_seed_hex>"

Example:

tidecoin-cli -rpcwallet="main" importpqhdseed \ "00112233445566778899aabbccddeeff00112233445566778899aabbccddeeff"

Arguments:

NameTypeRequiredDescription
seedhex stringYes32-byte PQHD master seed, encoded as 64 hex characters.

Result:

FieldTypeDescription
seed_idhex stringDerived SeedID32.
insertedbooleantrue if a new seed record was inserted.

setpqhdseed

Set default PQHD seed IDs used for receive and change derivation.

tidecoin-cli -rpcwallet="<wallet>" setpqhdseed "<receive_seed_id>" ["<change_seed_id>"]

Arguments:

NameTypeRequiredDescription
receive_seed_idhex stringYesSeedID32 used for receive derivation.
change_seed_idhex stringNoSeedID32 used for change derivation. Defaults to receive_seed_id.

Result:

FieldTypeDescription
receive_seed_idhex stringSelected receive seed ID.
change_seed_idhex stringSelected change seed ID.

removepqhdseed

Remove a PQHD seed that is not default and is not referenced by existing wallet descriptors.

tidecoin-cli -rpcwallet="<wallet>" removepqhdseed "<seed_id>"

Arguments:

NameTypeRequiredDescription
seed_idhex stringYesSeedID32 to remove.

Result:

FieldTypeDescription
seed_idhex stringRemoved SeedID32.
removedbooleanAlways true on success.

Tidecoin-specific options on Bitcoin-compatible RPCs

These are not separate commands, but Tidecoin adds PQHD-related options to existing wallet and PSBT RPCs.

CommandOptionDefaultPurpose
getaddressinfoinclude_pqhd_origincommand-specificInclude Tidecoin PQHD origin information when available.
walletcreatefundedpsbtinclude_pqhd_originsfalseInclude Tidecoin PQHD origin proprietary metadata in PSBT inputs/outputs.
walletprocesspsbtinclude_pqhd_originsfalseInclude Tidecoin PQHD origin metadata while processing PSBT.
fundrawtransactioninclude_pqhd_originsfalseInclude PQHD origins when wallet metadata is attached.
send / sendallinclude_pqhd_originsfalseInclude PQHD origins when returning PSBT output.
bumpfee / psbtbumpfeeinclude_pqhd_originsfalseInclude PQHD origins for fee-bump PSBT workflows.

Leave include_pqhd_origins=false unless the receiving signer or integration needs PQHD origin metadata. The default is privacy-preserving.

Bitcoin-compatible RPCs

Tidecoin inherits the broad Bitcoin Core v30 RPC surface for blockchain, mempool, raw transaction, wallet, descriptor, PSBT, network, mining, REST, and ZMQ workflows. Use help for the full runtime schema exposed by your node:

tidecoin-cli help tidecoin-cli help getblockchaininfo tidecoin-cli -rpcwallet="<wallet>" help walletprocesspsbt

For integration work, prefer runtime help output for exact argument ordering and defaults, then use this page for Tidecoin-specific extensions.

See also: RPC Error Codes, RPC Security, PQHD Wallets, Mining / AuxPoW Integration, Protocol / Activation Status.

Last updated on