Wallet RPC Methods
Wallet RPCs provide functionality for managing wallets, creating and signing transactions, address management, and balance queries.Wallet Management
createwallet
Creates a new wallet.Wallet name
Warning messages (if any)
loadwallet
Loads an existing wallet.unloadwallet
Unloads a wallet from memory.listwallets
Returns a list of currently loaded wallets.Array of wallet names (strings)
getwalletinfo
Returns information about the wallet.Wallet name
Wallet version
Database format (bdb, sqlite)
Total confirmed balance in BTC
Unconfirmed balance in BTC
Immature coinbase balance
Total number of transactions
Number of keys in keypool
Timestamp wallet is unlocked until (encrypted wallets only)
Whether wallet uses descriptors
Balance and UTXO Queries
getbalance
Returns the total available balance.Total balance in BTC
getbalances
Returns detailed balance information.Balances from outputs the wallet can sign
trusted: Confirmed balanceuntrusted_pending: Unconfirmed balanceimmature: Immature coinbase balance
Watch-only balances (same structure as mine)
listunspent
Returns array of unspent transaction outputs (UTXOs).Transaction ID
Output index
Bitcoin address
Amount in BTC
Number of confirmations
Whether output is spendable
Whether output is solvable
Whether output is safe to spend
Address Management
getnewaddress
Generates a new receiving address.New Bitcoin address
getrawchangeaddress
Generates a new address for receiving change.getaddressinfo
Returns information about a given address.The bitcoin address
Whether address belongs to wallet
Whether address is watch-only
Whether address is a script
Public key for address
Address label
HD keypath (if address is from HD wallet)
Sending Transactions
sendtoaddress
Sends bitcoin to a given address.Transaction ID
sendmany
Sends bitcoin to multiple addresses in one transaction.Transaction ID
send
Experimental RPC for creating and sending transactions with advanced options.Transaction History
listtransactions
Returns list of transactions for the wallet.gettransaction
Returns detailed information about an in-wallet transaction.Amount in BTC (negative for sends)
Transaction fee (negative, only for sends)
Number of confirmations
Block hash containing transaction
Transaction ID
Transaction time
Raw transaction hex