본문으로 건너뛰기
수동 업데이트 v0.33.1 · 릴리스 공개

BTX v0.33.1가 최신 릴리스입니다.

GitHub를 통해 업그레이드하세요. 이 지갑 상호운용 릴리스는 네이티브 .btxwallet 가져오기/내보내기를 추가하며 현재 소스, 플랫폼별 바이너리와 v9 빠른 시작 스냅샷을 포함합니다.

업데이트 경로 수동 즉시 업그레이드하려면 GitHub v0.33.1 릴리스 자산, SHA256SUMS.asc 서명과 스냅샷을 사용하세요. 독립적으로 서명된 btx.dev 자동 업데이트 매니페스트는 일치하는 서명이 준비될 때까지 v0.32.8에 고정됩니다.

Wallet RPCs

RPC commands for wallet management, encryption, descriptors, P2MR address generation, and recovery on the BTX network.

경로 선택

여기 온 이유에 맞는 작업 흐름에서 시작하세요.

문서 범위는 넓습니다. 이 두 경로는 새 microsite 뒤에 있는 운영자용과 빌더용 핵심 자료로 바로 안내합니다.

Note: BTX enforces PQ (post-quantum) policy: only descriptor wallets are supported (descriptors=true). Current transparent receive and change addresses are P2MR only (p2mr, btx1z...).

createwallet

Create a new wallet. BTX wallets use descriptor-based key management with post-quantum key support.

ParameterTypeRequiredDescription
wallet_namestringYesName for the new wallet
disable_private_keysbooleanNo (default false)Create a watch-only wallet
blankbooleanNo (default false)Create a blank wallet with no keys or HD seed
passphrasestringNoEncrypt the wallet with this passphrase
avoid_reusebooleanNo (default false)Track coin reuse for improved privacy
descriptorsbooleanNo (default true)Must be true on BTX
load_on_startupbooleanNoAutomatically load wallet on node startup
external_signerbooleanNo (default false)Use an external signer (hardware wallet)
btx-cli createwallet "mywallet"
btx-cli createwallet "encrypted" false false "mypassphrase"

Returns name (wallet name) and warning (any caveats).

loadwallet

Load a wallet from the wallet directory.

ParameterTypeRequiredDescription
filenamestringYesWallet name or path
load_on_startupbooleanNoAutomatically load on startup
btx-cli loadwallet "mywallet"

unloadwallet

Unload a wallet. If no wallet name is given, unloads the default wallet.

ParameterTypeRequiredDescription
wallet_namestringNoWallet name to unload (default: caller's wallet)
load_on_startupbooleanNoUpdate load-on-startup setting
btx-cli unloadwallet "mywallet"

listwallets

Returns a list of currently loaded wallets. For full information on each wallet, use getwalletinfo.

btx-cli listwallets

Returns an array of wallet name strings.

getwalletinfo

Returns an object containing various wallet state information.

btx-cli getwalletinfo

Key response fields:

FieldDescription
walletnameWallet name
walletversionWallet format version
formatDatabase format (sqlite)
balanceConfirmed balance
unconfirmed_balanceUnconfirmed balance
immature_balanceImmature coinbase balance
txcountTotal transaction count
keypoolsizePre-generated external keys
unlocked_untilUnlock expiry (encrypted wallets only)
descriptorsWhether this wallet uses descriptors (always true on BTX)
private_keys_enabledWhether private keys are available
scanningRescan progress or false

restorewalletbundle (v0.33.1+)

Create and load a native descriptor wallet from a verified browser .btxwallet plaintext recovery file.

btx-cli restorewalletbundle "webwallet" "/secure/offline/btx-wallet.btxwallet.json" null true

importwalletbundle (v0.33.1+)

Import a verified browser bundle into the currently selected existing blank descriptor wallet.

btx-cli -rpcwallet="webwallet" importwalletbundle "/secure/offline/btx-wallet.btxwallet.json" true

exportwalletbundle (v0.33.1+)

Export a compatible single-seed descriptor wallet as a plaintext browser recovery file. This file can spend funds; prefer backupwalletbundlearchive for routine encrypted native backups.

btx-cli -rpcwallet="webwallet" exportwalletbundle "/secure/offline/webwallet.btxwallet.json"

backupwallet

Safely copy the current wallet file to the specified destination.

ParameterTypeRequiredDescription
destinationstringYesDestination file path
btx-cli backupwallet "/backups/wallet.dat"

backupwalletbundle

Create a comprehensive wallet bundle backup that includes the wallet database, descriptor metadata, and PQ key material in a single directory.

ParameterTypeRequiredDescription
destinationstringYesDestination directory path
btx-cli backupwalletbundle "/backups/bundle/"

Run z_verifywalletintegrity before backing up to confirm all key material is present.

backupwalletbundlearchive

암호화된 단일 파일 지갑 bundle 아카이브를 생성합니다. include_viewing_keys 를 생략하면 현재 활성화된 프라이버시 체계의 기본값이 적용됩니다.

ParameterTypeRequiredDescription
destinationstringYesDestination archive file path
btx-cli -stdinbundlepassphrase backupwalletbundlearchive "/backups/wallet.bundle.btx"

restorewalletbundlearchive

Restore a wallet from a bundle archive previously created by backupwalletbundlearchive.

ParameterTypeRequiredDescription
wallet_namestringYesName for the restored wallet
archive_pathstringYesPath to the bundle archive
btx-cli -stdinbundlepassphrase restorewalletbundlearchive "restored" "/backups/wallet.bundle.btx"

encryptwallet

Encrypts the wallet with a passphrase. This is a one-time operation -- once encrypted, the passphrase cannot be removed, only changed. The node will shut down after encryption; restart it afterward.

ParameterTypeRequiredDescription
passphrasestringYesThe wallet passphrase (must not be empty)
btx-cli encryptwallet "my-secure-passphrase"

Important: Shielded keys require an encrypted wallet. Encrypt before using any shielded features.

walletpassphrase

Unlock the wallet for the specified number of seconds. Required before signing transactions or deriving shielded keys on an encrypted wallet.

ParameterTypeRequiredDescription
passphrasestringYesThe wallet passphrase
timeoutnumberYesSeconds to keep the wallet unlocked (max 1073741824)
btx-cli walletpassphrase "my-secure-passphrase" 600

walletpassphrasechange

Change the wallet passphrase.

ParameterTypeRequiredDescription
oldpassphrasestringYesCurrent passphrase
newpassphrasestringYesNew passphrase
btx-cli walletpassphrasechange "old-passphrase" "new-passphrase"

dumpprivkey

Legacy compatibility RPC for dumping a single imported private key. This is not the current backup path for PQ P2MR descriptor wallets; use backupwalletbundlearchive and listdescriptors for current wallets. The wallet must be unlocked.

ParameterTypeRequiredDescription
addressstringYesWallet-owned address for a compatible imported key
btx-cli dumpprivkey "<wallet-owned-address>"

Returns a private key string accepted by importprivkey for compatible legacy keys.

importprivkey

Import a compatible private key into the wallet. Current P2MR descriptor receive/change paths should be restored from descriptor and wallet backups instead of single-key imports.

ParameterTypeRequiredDescription
privkeystringYesCompatible private key string
labelstringNo (default "")Label for the address
rescanbooleanNo (default true)Rescan blockchain for transactions
btx-cli importprivkey "<private-key>"

listdescriptors

List all descriptors imported into a descriptor-enabled wallet. Includes PQ descriptors with pqhd() and mr() key expressions.

ParameterTypeRequiredDescription
privatebooleanNo (default false)Include private key information
btx-cli listdescriptors

Returns wallet_name and an array of descriptors, each with desc (descriptor string), timestamp, active, internal, and range.

getdescriptorinfo

Analyze a descriptor string and return its canonical form, checksum, and properties.

ParameterTypeRequiredDescription
descriptorstringYesThe output descriptor to analyze
btx-cli getdescriptorinfo "mr(pqhd(<extended-pq-pubkey>/0/*))#checksum"

Returns descriptor (canonical form with checksum), checksum, isrange, issolvable, and hasprivatekeys.

getnewaddress

Generate a new receiving address. On BTX, this produces a P2MR (Merklized Root) address backed by post-quantum keys.

ParameterTypeRequiredDescription
labelstringNo (default "")Label for the address
address_typestringNoSupported option is p2mr. Other address types are rejected.
btx-cli getnewaddress "donations" "p2mr"

Returns a new btx1z... BTX address string. Omitting address_type uses the wallet's P2MR default.

getrawchangeaddress

Generate a raw change address for manual raw-transaction workflows. BTX change is P2MR only.

ParameterTypeRequiredDescription
address_typestringNoSupported option is p2mr. Legacy, SegWit, and bech32m change types are rejected.
btx-cli getrawchangeaddress "p2mr"

Returns a new btx1z... change address.

addpqmultisigaddress

Create an n-of-m post-quantum multisig P2MR address. Legacy addmultisigaddress is disabled by BTX PQ policy.

ParameterTypeRequiredDescription
nrequirednumberYesRequired signature threshold
keysarrayYesML-DSA-44 hex, SLH-DSA hex, or pk_slh(hex) public keys
labelstringNoWallet label
sortbooleanNo (default false)Sort keys lexicographically before building the descriptor
btx-cli addpqmultisigaddress 2 '["<mldsa_key_hex_1>","<mldsa_key_hex_2>","pk_slh(<slh_key_hex>)"]' "treasury" true

Returns address, redeemScript, and the imported P2MR multisig descriptor.

shielded wallet status

Shielded wallet accounting, viewing, strict shielded-to-transparent exits, and recovery surfaces are current. Private z-to-z sends, re-shielding, z_shieldfunds, z_shieldcoinbase, and z_fundpsbt are historical/pre-sunset compatibility paths or disabled after shielded pool credits are disabled at height 125000.

migratewallet

Migrate a legacy wallet to a descriptor wallet. On BTX, this is required since only descriptor wallets are supported.

ParameterTypeRequiredDescription
wallet_namestringNoName of the wallet to migrate (default: current wallet)
passphrasestringNoPassphrase if the wallet is encrypted
btx-cli migratewallet

Returns wallet_name, watchonly_name (if watch-only scripts were separated), solvables_name (if solvable scripts were separated), and backup_path (path to the backup of the original wallet).