Wallet
addmultisigaddress
addmultisigaddress nrequired [ "key", ... ] ( "account" )
The addmultisigaddress
method adds a multi-signature address to the wallet, where nrequired
indicates the number of keys (out of the total provided) required to execute a transaction.
The keys function as signatures, allowing multiple parties or entities to manage an account. Each key in the array can be an address or a hex-encoded public key.
::: tip DEPRECATED: If account is specified, the method assigns the multi-signature address to that account. :::
Arguments
Name
Type
Description
nrequired
(numeric, required)
the number of required keys (out of the n
submitted)
"keysobject"
(string, required)
a json array of addresses or hex-encoded public keys
"address"
(string)
the address or hex-encoded public key
"account"
(string, optional)
DEPRECATED: if provided, "account" MUST be set to the empty string "" to represent the default account; passing any other string will result in an error
Response
Name
Type
Description
"address"
(string)
an address associated with the keys
📌 Examples
Add a multisig address from 2 addresses:
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
backupwallet
backupwallet "destination"
The backupwallet
method safely copies the wallet.dat
file to the indicated destination. The destination
input accepts only alphanumeric characters.
::: tip This method requires that the coin daemon have the exportdir runtime parameter enabled. :::
Arguments
Name
Type
Description
"destination"
(string, required)
Response
Name
Type
Description
"path"
(string)
the full path of the destination file
📌 Examples
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
dumpprivkey
dumpprivkey "address"
The dumpprivkey
method reveals the private key corresponding to the indicated address
.
::: tip See also importprivkey. :::
Arguments
Name
Type
Description
"address"
(string, required)
the address for the private key
Response
Name
Type
Description
"data"
(string)
the private key
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
dumpwallet
dumpwallet "filename"
The dumpwallet
method dumps all transparent-address wallet keys into a file, using a human-readable format.
Overwriting an existing file is not permitted. The destination
parameter accepts only alphanumeric characters.
::: tip This method requires that the coin daemon have the exportdir runtime parameter enabled. :::
Arguments
Name
Type
Description
"filename"
(string, required)
Response
Name
Type
Description
"path"
(string)
the full path of the destination file
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
encryptwallet
encryptwallet "passphrase"
::: warning Using the encryptwallet
method will shutdown the Indexchain daemon (Indexchain). :::
:::tip This feature is available only on chains where -ac_public
is enabled. Chains that feature private transactions cannot use this feature. :::
The encryptwallet
method encrypts the wallet with the indicated passphrase
.
This method is for first-time encryption only. After the first encryption, any calls that interact with private keys will require the passphrase via walletpassphrase prior to calling the corresponding method. This includes methods that create a transaction, dump a private key for an address, sign a transaction, etc.
Arguments
Name
Type
Description
passphrase
(string)
the passphrase for wallet encryption; the passphrase must be at least 1 character, but should be many
Response
Text Response
wallet encrypted; Indexchain server stopping, restart to run with encrypted wallet. The keypool has been flushed, you need to make a new backup.
📌 Examples
Encrypt your wallet
Command:
<collapse-text hidden title="Response">
</collapse-text>
Unlock the wallet for 60 seconds
Command:
<collapse-text hidden title="Response">
</collapse-text>
Lock the wallet again by removing the passphrase
Command:
<collapse-text hidden title="Response">
</collapse-text>
As a json rpc call:
Command:
<collapse-text hidden title="Response">
</collapse-text>
getaccount
getaccount "address"
The getaccount
method returns the account associated with the given address.
Arguments
Name
Type
Description
"address"
(string, required)
the address
Response
Name
Type
Description
"accountname"
(string)
the account address
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
getaccountaddress
getaccountaddress "account"
::: tip DEPRECATED :::
The getaccountaddress
method returns the current address for receiving payments to this account.
Arguments
Name
Type
Description
"account"
(string, required)
MUST be set to the empty string "" to represent the default account; passing any other string will result in an error
Response
Name
Type
Description
"address"
(string)
the account address
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
getaddressesbyaccount
getaddressesbyaccount "account"
::: tip DEPRECATED :::
The getaddressesbyaccount
method returns the list of addresses for the given account
.
Arguments
Name
Type
Description
"account"
(string, required)
MUST be set to the empty string "" to represent the default account; passing any other string will result in an error
Response
Name
Type
Description
"address"
(string)
an address associated with the given account
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
getbalance
getbalance ( "account" minconf includeWatchonly )
The getbalance
method returns the server's total available balance.
::: tip The account input is deprecated. :::
Arguments
Name
Type
Description
"account"
(string, optional)
DEPRECATED if provided, it MUST be set to the empty string ""
or to the string "*"
minconf
(numeric, optional, default=1)
only include transactions confirmed at least this many times
includeWatchonly
(bool, optional, default=false)
also include balance in watchonly addresses (see importaddress
)
Response
Name
Type
Description
amount
(numeric)
the total amount
📌 Examples
The total amount in the wallet:
Command:
<collapse-text hidden title="Response">
</collapse-text>
The total amount in the wallet where at least five blocks are confirmed:
Command:
<collapse-text hidden title="Response">
</collapse-text>
As a json rpc call:
Command:
<collapse-text hidden title="Response">
</collapse-text>
getbalance64
getbalance64
::: tip This method is part of the new ac_staked functionality. :::
The getbalance64
method is used only on Smart Chains that are utilizing the ac_staked
functionality. On DIC-based Proof-of-Stake (PoS) Smart Chains, all staked coins are placed into one of 64 segments (segid
's'). The getbalance64
method returns the balance of coins in each segid
. For further information, please reach out to our support team.
getnewaddress
getnewaddress ( "account" )
The getnewaddress
method returns a new address for receiving payments.
Arguments
Name
Type
Description
"account"
(string, optional)
DEPRECATED: If provided, the account MUST be set to the empty string ""
to represent the default account; passing any other string will result in an error
Response
Name
Type
Description
"address"
(string)
the new address
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
getrawchangeaddress
getrawchangeaddress
The getrawchangeaddress
returns a new address that can be used to receive change.
::: tip This is for use with raw transactions, NOT normal use. :::
Arguments
Name
Type
Description
(none)
Response
Name
Type
Description
"address"
(string)
the address
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
getreceivedbyaccount
getreceivedbyaccount "account" ( minconf )
::: tip DEPRECATED :::
The getreceivedbyaccount method returns the total amount received by account in transactions with at least minconf confirmations.
Arguments
Name
Type
Description
"account"
(string, required)
MUST be set to the empty string "" to represent the default account; passing any other string will result in an error
minconf
(numeric, optional, default=1)
only include transactions confirmed at least this many times
Response
Name
Type
Description
amount
(numeric)
the total amount received for this account
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
getreceivedbyaddress
getreceivedbyaddress "address" ( minconf )
The getreceivedbyaddress
method returns the total amount received by the given address
in transactions with at least minconf
confirmations.
Arguments
Name
Type
Description
"address"
(string, required)
the address for transactions
minconf
(numeric, optional, default=1)
only include transactions confirmed at least this many times
Response
Name
Type
Description
amount
(numeric)
the total amount of the relevant coin received at this address
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
Command:
<collapse-text hidden title="Response">
</collapse-text>
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
gettransaction
gettransaction "txid" ( includeWatchonly )
The gettransaction
method queries detailed information about transaction txid
. This command applies only to txid
's that are in the user's local wallet.
Arguments
Name
Type
Description
"txid"
(string, required)
the transaction id
"includeWatchonly"
(bool, optional, default=false)
whether to include watchonly addresses in the returned balance calculation and in the details[]
returned values
Response
Name
Type
Description
"amount"
(numeric)
the transaction amount
"confirmations"
(numeric)
a confirmation number that is aware of the dPoW security service
"rawconfirmations"
(numeric)
the raw confirmations (number of blocks on top of this transaction's block)
"blockhash"
(string)
the block hash
"blockindex"
(numeric)
the block index
"blocktime"
(numeric)
the time in seconds since epoch (1 Jan 1970 GMT)
"txid"
(string)
the transaction id
"time"
(numeric)
the transaction time in seconds since epoch (1 Jan 1970 GMT)
"timereceived"
(numeric)
the time received in seconds since epoch (1 Jan 1970 GMT)
"details" : [ ... ]
(array)
"account"
(string)
DEPRECATED the account name involved in the transaction; can be "" for the default account
"address"
(string)
the address involved in the transaction
"category"
(string)
the category - either send
or receive
"amount"
(numeric)
the amount
"vout"
(numeric)
the vout value
"vjoinsplit" : [ ... ]
(array of json objects)
"anchor"
(string)
merkle root of note commitment tree
| "nullifiers" : [ ... ] | (array of strings) | <!--Need these? If not, let's leave a comment here saying why they're not needed, so that next time we don't forget. --> | "hex" | (string) | | "commitments" : [ ... ] | (array of strings) | | "hex" | (string) | | "macs" : [ ... ] | (array of strings) | | "hex" | (string) | | "vpub_old" | (numeric) | the amount removed from the transparent value pool | | "vpub_new" | (numeric) | the amount added to the transparent value pool | | "hex" | (string) | transaction data translated into hex |
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
getunconfirmedbalance
getunconfirmedbalance
The getunconfirmedbalance
method returns the server's total unconfirmed balance.
Arguments
Name
Type
Description
(none)
Response
Name
Type
Description
(none)
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
getwalletinfo
getwalletinfo
The getwalletinfo
method returns an object containing various information about the wallet state.
Arguments
Name
Type
Description
(none)
Response
Name
Type
Description
"walletversion"
(numeric)
the wallet version
"balance"
(numeric)
the total confirmed balance of the wallet
"unconfirmed_balance"
(numeric)
the total unconfirmed balance of the wallet
"immature_balance"
(numeric)
the total immature balance of the wallet
"txcount"
(numeric)
the total number of transactions in the wallet
"keypoololdest"
(numeric)
the timestamp (seconds since GMT epoch) of the oldest pre-generated key in the key pool
"keypoolsize"
(numeric)
how many new keys are pre-generated
"unlocked_until"
(numeric)
the timestamp in seconds since epoch (midnight Jan 1 1970 GMT) that the wallet is unlocked for transfers, or 0 if the wallet is locked
"paytxfee"
(numeric)
the transaction fee configuration, given as the relevant COIN per KB
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
importaddress
importaddress "address" ( "label" rescan )
The importaddress
method adds an address or script (in hex) that can be watched as if it were in your wallet, although it cannot be used to spend.
::: tip This call can take an increased amount of time to complete if rescan is true. :::
Arguments
Name
Type
Description
"address"
(string, required)
the address to watch
"label"
(string, optional, default="")
an optional label
rescan
(boolean, optional, default=true)
rescan the wallet for transactions
Response
Name
Type
Description
(none)
📌 Examples
Import an address with rescan:
Command:
<collapse-text hidden title="Response">
</collapse-text>
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
importprivkey
importkey "Indexchainprivkey" ( "label" rescan )
The importprivkey
method adds a private key to your wallet.
::: tip This call can take minutes to complete if rescan is true. :::
::: tip See also dumpprivkey. :::
Arguments
Name
Type
Description
"privkey"
(string, required)
"label"
(string, optional, default="")
an optional label
rescan
(boolean, optional, default=true)
rescan the wallet for transactions
Response
Name
Type
Description
addresses
(string)
the public address
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
importwallet
importwallet "filename"
The importwallet
method imports transparent-address keys from a wallet-dump file (see dumpwallet).
Arguments
Name
Type
Description
"filename"
(string, required)
the wallet file
Response
Name
Type
Description
(none)
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
keypoolrefill
keypoolrefill ( newsize )
The keypoolrefill
method refills the keypool.
Arguments
Name
Type
Description
newsize
(numeric, optional, default=100)
the new keypool size
Response
Name
Type
Description
(none)
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
listaccounts
listaccounts ( minconf includeWatchonly )
::: tip DEPRECATED :::
The listaccounts method returns an object that has account names as keys and account balances as values.
Arguments
Name
Type
Description
minconf
(numeric, optional, default=1)
only include transactions with at least this many confirmations
includeWatchonly
(bool, optional, default=false)
include balances in watchonly addresses (see 'importaddress')
Response
Name
Type
Description
"account_number"
(numeric)
the property name is the account name, and the value is the total balance for the account
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
listaddressgroupings
listaddressgroupings
The listaddressgroupings
method lists groups of addresses which have had their common ownership made public by common use as inputs or as the resulting change in past transactions.
Arguments
Name
Type
Description
(none)
Response
Name
Type
Description
"address",
(string)
the address
amount,
(numeric)
the amount
"account"
(string, optional)
(DEPRECATED) the account
📌 Examples
Command:
<collapse-text hidden title="Response">
(note how there are two separate, unique groupings of addresses)
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
listlockunspent
listlockunspent
The listlockunspent
method returns a list of temporarily non-spendable outputs.
::: tip See the lockunspent call to lock and unlock transactions for spending. :::
Arguments
Name
Type
Description
(none)
Response
Name
Type
Description
"txid"
(string)
the transaction id locked
"vout"
(numeric)
the vout value
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
listreceivedbyaccount
listreceivedbyaccount ( minconf includeempty includeWatchonly )
::: warning DEPRECATED :::
The listreceivedbyaccount
method lists balances by account.
Arguments
Name
Type
Description
minconf
(numeric, optional, default=1)
the minimum number of confirmations before payments are included
includeempty
(boolean, optional, default=false)
whether to include accounts that haven't received any payments
includeWatchonly
(bool, optional, default=false)
whether to include watchonly addresses (see 'importaddress')
Response
Name
Type
Description
"involvesWatchonly"
(bool)
only returned if the imported addresses were involved in the transaction
"account"
(string)
the account name of the receiving account
"amount"
(numeric)
the total amount received by addresses with this account
"confirmations"
(numeric)
a confirmation number that is aware of the dPoW security service
"rawconfirmations"
(numeric)
the raw confirmations of the most recent transaction included (number of blocks on top of this transaction's block)
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
listreceivedbyaddress
listreceivedbyaddress ( minconf includeempty includeWatchonly)
The listreceivedbyaddress
method lists balances by receiving address.
Arguments
Name
Type
Description
minconf
(numeric, optional, default=1)
the minimum number of confirmations before payments are included
includeempty
(numeric, optional, default=false)
whether to include addresses that haven't received any payments
includeWatchonly
(bool, optional, default=false)
whether to include watchonly addresses (see 'importaddress')
Response
Name
Type
Description
"involvesWatchonly"
(bool)
only returned if imported addresses were involved in transaction
"address"
(string)
the receiving address
"account"
(string)
DEPRECATED the account of the receiving address; the default account is ""
"amount"
(numeric)
the total amount received by the address
"confirmations"
(numeric)
a confirmation number that is aware of the dPoW security service
"rawconfirmations"
(numeric)
the raw confirmations of the most recent transaction included (number of blocks on top of this transaction's block)
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
listsinceblock
listsinceblock ( "blockhash" target-confirmations includeWatchonly )
The listsinceblock
method queries all transactions in blocks since block blockhash
, or all transactions if blockhash
is omitted.
Arguments
Name
Type
Description
"blockhash"
(string, optional)
the block hash from which to list transactions
target-confirmations
(numeric, optional)
the confirmations required (must be 1 or more)
includeWatchonly
(bool, optional, default=false)
include transactions to watchonly addresses (see also 'importaddress')
Response
Name
Type
Description
"transactions":
"account"
(string)
DEPRECATED the account name associated with the transaction; will be "" for the default account
"address"
(string)
the address of the transaction (not present for move transactions -- category = move)
"category"
(string)
the transaction category; send
has negative amounts, receive
has positive amounts
"amount"
(numeric)
the amount of the relevant currency -- negative for the send
category, and for the move
category for moves outbound. It is positive for the receive
category, and for the move
category for inbound funds.
"vout"
(numeric)
the vout value
"fee"
(numeric)
the amount of the fee; this value is negative and only available for the send
category of transactions
"confirmations"
(numeric)
a confirmation number that is aware of the dPoW security service
"rawconfirmations"
(numeric)
the raw confirmations of the transaction; available for send
and receive
category of transactions (number of blocks on top of this transaction's block)
"blockhash"
(string)
the block hash containing the transaction; available for the send
and receive
categories of transactions
"blockindex"
(numeric)
the block index containing the transaction; available for the send
and receive
categories of transactions
"blocktime"
(numeric)
the block time in seconds since epoch (1 Jan 1970 GMT)
"txid"
(string)
the transaction id; available for send
and receive
categories of transactions
"time"
(numeric)
the transaction time in seconds since epoch (Jan 1 1970 GMT)
"timereceived"
(numeric)
the time received in seconds since epoch (Jan 1 1970 GMT); available for send
and receive
category of transactions
"comment"
(string)
whether a comment is associated with the transaction
"to"
(string)
whether a 'to' comment is associated with the transaction
"lastblock"
(string)
the hash of the last block
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
listtransactions
listtransactions ( "account" count from includeWatchonly )
The listtransactions
method returns up to count
most recent transactions skipping the first from
transactions for account
.
Arguments
Name
Type
Description
"account"
(string, optional)
DEPRECATED the account name; should be "*"
count
(numeric, optional, default=10)
the number of transactions to return
from
(numeric, optional, default=0)
the number of transactions to skip
includeWatchonly
(bool, optional, default=false)
include transactions to watchonly addresses (see importaddress
)
Response
Name
Type
Description
"account"
(string)
DEPRECATED the account name associated with the transaction; it will be "" for the default account
"address"
(string)
the address of the transaction; not present for move transactions (category = move)
"category"
(string)
The transaction category. This property can be send
"amount"
(numeric)
The amount. This value is negative for the send
category, and for the move
category for moves outbound. It is positive for the receive
category and for the move
category for inbound funds.
"vout"
(numeric)
the vout value
"fee"
(numeric)
the amount of the fee; this is negative and only available for the send
category of transactions
"confirmations"
(numeric)
a confirmation number that is aware of the dPoW security service
"rawconfirmations"
(numeric)
the raw confirmations of the transaction; available for send
and receive
category of transactions (number of blocks on top of this transaction's block)
"blockhash"
(string)
the block hash containing the transaction; available for the send
and receive
categories of transactions
"blockindex"
(numeric)
the block index containing the transaction; available for the send
and receive
categories of transactions
"txid"
(string)
the transaction id; available for the send
and receive
categories of transactions
"time"
(numeric)
the transaction time in seconds since epoch (midnight Jan 1 1970 GMT)
"timereceived"
(numeric)
the time received in seconds since epoch (midnight Jan 1 1970 GMT); available for the send
and receive
categories of transactions
"comment"
(string)
whether a comment is associated with the transaction
"otheraccount"
(string)
for the move
category of transactions; indicates the account which sent the funds (for receiving funds, positive amounts), or went to (for sending funds, negative amounts)
"size"
(numeric)
transaction size in bytes
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
listunspent
listunspent ( minconf maxconf ["address", ... ] )
The listunspent
method returns an array of unspent transaction outputs, with a range between minconf
and maxconf
(inclusive) confirmations. The method can, optionally, filter to only include txouts
paid to specified addresses.
Arguments
Name
Type
Description
minconf
(numeric, optional, default=1)
the minimum confirmations to filter
maxconf
(numeric, optional, default=9999999)
the maximum confirmations to filter
"address"
(string)
a series of addresses
Response
Name
Type
Description
"txid"
(string)
the transaction id
"vout"
(numeric)
the vout value
"generated"
(boolean)
true if txout is a coinbase transaction output
"address"
(string)
the address
"account"
(string)
DEPRECATED the associated account, or "" for the default account
"scriptPubKey"
(string)
the script key
"amount"
(numeric)
the transaction amount
"confirmations"
(numeric)
a confirmation number that is aware of the dPoW security service
"rawconfirmations"
(numeric)
the raw confirmations (number of blocks on top of this transaction's block)
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
lockunspent
lockunspent unlock [{ "txid": "txid", "vout": n }, ... ]
The lockunspent
method locks (unlock = false
) or unlocks (unlock = true
) specified transaction outputs. A locked transaction output will not be chosen by automatic coin selection, when spending the relevant coin. The locks are stored in memory only; at runtime a node always starts with zero locked outputs, and the locked output list is always cleared when a node stops or fails.
::: tip See the listunspent and listlockunspent calls to determine local transaction state and info. :::
Arguments
Name
Type
Description
unlock
(boolean, required)
whether to unlock (true) or lock (false) the specified transactions
"txid"
(string)
the transaction id
"vout"
(numeric)
the output number
Response
Name
Type
Description
true/false
(boolean)
whether the command was successful
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
move
move "fromaccount" "toaccount" amount ( minconf "comment" )
::: tip DEPRECATED :::
The move
method moves a specified amount from one account in your wallet to another.
Arguments
Name
Type
Description
"fromaccount"
(string, required)
MUST be set to the empty string "" to represent the default account; passing any other string will result in an error
"toaccount"
(string, required)
MUST be set to the empty string "" to represent the default account; passing any other string will result in an error
amount
(numeric)
the quantity to move between accounts
minconf
(numeric, optional, default=1)
only use funds with at least this many confirmations
"comment"
(string, optional)
an optional comment, stored in the wallet only
Response
Name
Type
Description
true/false
(boolean)
true if successful
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
<!-- Sidd: Commenting out until Alright has time to review.
opreturn_burn
opreturn_burn burn_amount hexstring ( txfee )
The opreturn_burn
method creates an OP_RETURN transaction.
The method returns a raw hex transaction that must then be broadcast via the sendrawtransaction method.
Arguments
Name
Type
Description
"burn_amount"
(numeric, required)
the amount of coins to burn
"hexstring"
(string, required)
the hex string to include in OP_RETURN data
"txfee"
(numeric, optional, defalut=0.0001)
the transaction fee
Response
Name
Type
Description
"hex"
(string)
raw hex of transaction; broadcast this using the sendrawtransaction method
📌 Examples
Command
Response
​​
<collapse-text hidden title="Response">
</collapse-text>
</div>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command
Response
​​
<collapse-text hidden title="Response">
</collapse-text>
</div>
-->
resendwallettransactions
resendwallettransactions
The resendwallettransactions
method immediately re-broadcasts unconfirmed wallet transactions to all peers. This method is intended only for testing; the wallet code periodically re-broadcasts automatically.
Arguments
Name
Type
Description
(none)
Response
Name
Type
Description
"transaction_id"
(string)
an array of the rebroadcasted transaction id's
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
sendfrom
sendfrom "account" "address" amount ( minconf "comment" "comment-to" )
::: tip DEPRECATED: Use sendtoaddress instead. :::
The sendfrom
method sends an amount from account
to address
.
Arguments
Name
Type
Description
"account"
(string, required)
MUST be set to the empty string "" to represent the default account; passing any other string will result in an error
"address"
(string, required)
the address to receive funds
amount
(numeric, required)
the amount (transaction fee not included)
minconf
(numeric, optional, default=1)
only use funds with at least this many confirmations
"comment"
(string, optional)
a comment used to store what the transaction is for; this is not part of the transaction, just kept in your wallet
"comment-to"
(string, optional)
an optional comment to store the name of the person or organization to which you're sending the transaction; this is not part of the transaction, it is only kept in your wallet
Response
Name
Type
Description
"transaction_id"
(string)
the transaction id
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
sendmany
sendmany "account" { "address": amount, ... } ( minconf "comment" [ "address", ... ] )
The sendmany
method can send multiple transactions at once. Amounts are double-precision floating point numbers.
Arguments
Name
Type
Description
"account"
(string, required)
MUST be set to the empty string "" to represent the default account; passing any other string will result in an error
"amounts" { "address":amount, ... }
("string":numeric)
the address (string) and the value (double-precision floating numeric)
minconf
(numeric, optional, default=1)
only use the balance confirmed at least this many times
"comment"
(string, optional)
a comment
subtractfeefromamount
(string, optional)
a json array with addresses. The fee will be equally deducted from the amount of each selected address; the recipients will receive less than you enter in their corresponding amount field. If no addresses are specified here, the sender pays the fee.
"address"
(string)
subtract fee from this address
Response
Name
Type
Description
"transaction_id"
(string)
the transaction id for the send; only 1 transaction is created regardless of the number of addresses
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
Command:
<collapse-text hidden title="Response">
</collapse-text>
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
sendtoaddress
sendtoaddress "address" amount ( "comment" "comment-to" subtractfeefromamount )
The sendtoaddress
method sends an amount to a given address. The amount is real and is rounded to the nearest 0.00000001.
Arguments
Name
Type
Description
"komodoaddress"
(string, required)
the receiving address
"amount"
(numeric, required)
the amount to send (json requires all decimals values less than 1 begin with the characters '0.')
"comment"
(string, optional)
a comment used to store what the transaction is for; this is not part of the transaction, just kept in your wallet
"comment-to"
(string, optional)
a comment to store the name of the person or organization to which you're sending the transaction; this is stored in your local wallet file only
subtractfeefromamount
(boolean, optional, default=false)
when true
, the fee will be deducted from the amount being sent
Response
Name
Type
Description
"transaction_id"
(string)
the transaction id
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
Command:
<collapse-text hidden title="Response">
</collapse-text>
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
setaccount
setaccount "address" "account"
::: tip Notice DEPRECATED :::
The setaccount
method sets the account associated with the given address.
Arguments
Name
Type
Description
"address"
(string, required)
the address to be associated with an account
"account"
(string, required)
MUST be set to the empty string "" to represent the default account; passing any other string will result in an error
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
setpubkey
setpubkey pubkey
The setpubkey
method sets the indicated pubkey
. This method can be used in place of the pubkey launch parameter, when necessary.
Visit the section pubkey to understand when it is essential to set a pubkey and the consequences of setting it.
::: warning This method works only once per daemon start. It can't be used to change the pubkey that has already been set. :::
Arguments
Name
Type
Description
pubkey
(string)
the desired pubkey
Response
Name
Type
Description
pubkey
(string)
the pubkey
ismine
(boolean)
indicates whether the address belongs to the user
R-address
(string)
the public address associated with the pubkey
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find the rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
settxfee
settxfee amount
The settxfee
method sets the transaction fee per kB.
Arguments
Name
Type
Description
amount
(numeric, required)
the transaction fee in COIN/kB rounded to the nearest 0.00000001
Response
Name
Type
Description
true/false
(boolean)
returns true if successful
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
signmessage
signmessage "address" "message"
The signmessage
method signs a message via the private key of an address.
Arguments
Name
Type
Description
"address"
(string, required)
the address to use for the private key
"message"
(string, required)
the message
Response
Name
Type
Description
"signature"
(string)
the signature of the message encoded in base 64
📌 Examples
Create the signature:
Command:
<collapse-text hidden title="Response">
</collapse-text>
Verify the signature:
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
walletlock
walletlock
::: tip The walletlock
method is neither active nor visible in the help
method until the encryptwallet passphrase is set. :::
:::tip This feature is available only on chains where -ac_public
is enabled. Chains that feature private transactions cannot use this feature. :::
The walletlock
method re-locks a wallet that has a passphrase enabled via encryptwallet.
Arguments
Name
Type
Description
(none)
Response
Name
Type
Description
(none)
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
walletpassphrase
walletpassphrase "passphrase" (timeout)
::: tip The walletpassphrase
method is neither active nor visible in the help
method until the encryptwallet passphrase is set. :::
:::tip This feature is available only on chains where -ac_public
is enabled. Chains that feature private transactions cannot use this feature. :::
The walletpassphrase
method unlocks the wallet using the passphrase that was set by the encryptwallet method.
The timeout
argument can be included to limit the length of time (in seconds) the wallet will remain unlocked.
Arguments
Name
Type
Description
"passphrase"
(string)
the passphrase that was set by the encryptwallet
method
timeout
(number in seconds, optional)
the amount of time for which the wallet should remember the passphrase
Response
Name
Type
Description
(none)
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
walletpassphrasechange
walletpassphrasechange "oldpassphrase" "newpassphrase"
::: tip The walletpassphrasechange
method is neither active nor visible in the help
method until the encryptwallet passphrase is set. :::
:::tip This feature is available only on chains where -ac_public
is enabled. Chains that feature private transactions cannot use this feature. :::
The walletpassphrasechange
method changes "oldpassphrase"
to "newpassphrase"
.
Arguments
Name
Type
Description
"oldpassphrase"
(string)
the old passphrase
"newpassphrase"
(string)
the new passphrase
Response
Name
Type
Description
(none)
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
z_exportkey
z_exportkey "z_address"
The z_exportkey
method reveals the private z_key corresponding to z_address
.
::: tip See also z_importkey. :::
Arguments
Name
Type
Description
"z_address"
(string, required)
the z_address for the private key
Response
Name
Type
Description
"key"
(string)
the private key
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
z_exportviewingkey
z_exportviewingkey "z_address"
The z_exportviewingkey
method reveals the viewing key corresponding to z_address
.
::: tip See also z_importviewingkey. :::
Arguments
Name
Type
Description
"z_address"
(string, required)
the z_address for the viewing key
Response
Name
Type
Description
"vkey"
(string)
the viewing key
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
z_exportwallet
z_exportwallet "filename"
The z_exportwallet
method exports all wallet keys, including both t address and z address types, in a human-readable format. Overwriting an existing file is not permitted.
Arguments
Name
Type
Description
"filename"
(string, required)
Response
Name
Type
Description
"path"
(string)
the full path of the destination file
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
z_getbalance
z_getbalance "address" ( minconf )
The z_getbalance
method returns the balance of a t address or z address belonging to the node’s wallet.
::: warning CAUTION: If address is a watch-only z address, the returned balance may be larger than the actual balance, as spends cannot be detected with incoming viewing keys. :::
Arguments
Name
Type
Description
"address"
(string)
the selected z or t address
minconf
(numeric, optional, default=1)
only include transactions confirmed at least this many times
Response
Name
Type
Description
amount
(numeric)
the total amount received at this address (in the relevant COIN value)
📌 Examples
The total amount received by address "myaddress" at least 5 blocks confirmed
Command:
<collapse-text hidden title="Response">
</collapse-text>
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
z_getnewaddress
z_getnewaddress
The z_getnewaddress
method returns a new z_address for receiving payments.
Arguments
Name
Type
Description
(none)
Response
Name
Type
Description
"z_address"
(string)
the new z_address
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
z_getoperationresult
z_getoperationresult ([ "operationid", ... ])
The z_getoperationresult
method retrieves the result and status of an operation which has finished, and then removes the operation from memory.
::: tip See also z_getoperationstatus. :::
Arguments
Name
Type
Description
"operationid"
(string, optional)
a list of operation ids to query; if not provided, the method examines all operations known to the node
Response
Name
Type
Description
"id"
(string)
the operation id
"status"
(string)
the result of the operation; can be success
"creation_time"
(numeric)
the creation time, in seconds since epoch (Jan 1 1970 GMT)
"result": { ... }
(array of json objects)
"txid":
(string)
the transaction id
"execution_secs"
(numeric)
the length of time to calculate the transaction
"method"
(string)
the name of the method used in the operation
"params": { ... }
(json)
"fromaddress"
(string)
the address from which funds are drawn
"amounts": [ ... ]
(array of json objects)
"address"
(string)
the receiving address
"amount"
(numeric)
the amount to receive
"minconf"
(numeric)
the minimum number of confirmations required
"fee"
(numeric)
the transaction fee
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
z_getoperationstatus
z_getoperationstatus ([ "operationid", ... ])
The z_getoperationstatus
message queries the operation status and any associated result or error data of any operationid
stored in local memory. The operation will remain in memory (unlike z_getoperationresult
, which removes the data from the local memory).
Arguments
Name
Type
Description
"operationid"
(array, optional)
a list of operation ids we are interested in; if an array is not provided, the method examines all operations known to the node
Response
Name
Type
Description
"id"
(string)
the operation id
"status"
(string)
the status of the operation; can be success
"creation_time"
(numeric)
the creation time, in seconds since epoch (Jan 1 1970 GMT)
"error" : { ... }
(array of json objects)
"code"
(numeric)
the associated error code
"message"
(string)
a message to indicate the nature of the error, if such a message is available
"method"
(string)
the name of the method used in the operation
"params" : { ... }
(array of json objects)
"fromaddress"
(string)
the address from which funds are drawn
"amounts": [ ... ]
(array of json objects)
"address"
(string)
the receiving address
"amount"
(numeric)
the amount to receive
"minconf"
(numeric)
indicates the required number of mining confirmations
"fee"
(numeric)
the fee
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
z_gettotalbalance
z_gettotalbalance ( minconf includeWatchonly )
The z_gettotalbalance
method returns the total value of funds, including both transparent and private, stored in the node’s wallet.
::: warning CAUTION: If the wallet contains watch-only z addresses the returned private balance may be larger than the actual balance, as spends cannot be detected with incoming viewing keys. :::
::: tip While the interest property is returned for all DIC-based coin daemons, only the main DIC chain utilizes the interest feature. DIC-based Smart Chains will always return a 0.00 interest value. :::
Arguments
Name
Type
Description
minconf
(numeric, optional, default=1)
only include private and transparent transactions confirmed at least this many times
includeWatchonly
(bool, optional, default=false)
also include balance in watchonly addresses (see 'importaddress' and 'z_importviewingkey')
Response
Name
Type
Description
"transparent"
(numeric)
the total balance of transparent funds
"interest"
(numeric)
the total balance of unclaimed interest earned
"private"
(numeric)
the total balance of private funds
"total"
(numeric)
the total balance of both transparent and private funds
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
z_importkey
z_importkey "z_privatekey" ( rescan startHeight )
The z_importkey
method imports z_privatekey
to your wallet.
::: tip This call can take minutes to complete if rescan is true. :::
::: tip The optional parameters are currently not functional with DIC-based blockchains. :::
::: tip See also z_exportkey. :::
Arguments
Name
Type
Description
"z_privatekey"
(string, required)
rescan
(string, optional, default="whenkeyisnew"
)
rescan the wallet for transactions; can be yes
startHeight
(numeric, optional, default=0)
the block height at which to begin the rescan
Response
Name
Type
Description
(none)
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
Command:
<collapse-text hidden title="Response">
</collapse-text>
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
z_importviewingkey
z_importviewingkey "viewing_key" ( rescan startHeight )
The z_importviewingkey
adds a viewing key to your wallet. This method allows you to view the balance in a z address that otherwise does not belong to your wallet.
::: tip See also z_exportviewingkey. :::
::: tip This call can take minutes to complete if rescan is true. :::
::: tip The optional parameters are currently not functional for DIC-based blockchains. :::
Arguments
Name
Type
Description
"viewing_key"
(string, required)
the viewing key
rescan
(string, optional, default="whenkeyisnew")
whether to rescan the wallet for transactions; can be "yes"
startHeight
(numeric, optional, default=0)
block height to start rescan
Response
Name
Type
Description
(none)
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
Command:
<collapse-text hidden title="Response">
</collapse-text>
Command:
<collapse-text hidden title="Response">
</collapse-text>
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
z_importwallet
z_importwallet "filename"
The z_importwallet
method imports t address and z address keys from a wallet export file.
::: tip See also z_exportwallet. :::
Arguments
Name
Type
Description
"filename"
(string, required)
the wallet file
Response
Name
Type
Description
(none)
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
z_listaddresses
z_listaddresses ( includeWatchonly )
The z_listaddresses
method returns the list of z addresses belonging to the wallet.
::: tip See also z_importviewingkey. :::
Arguments
Name
Type
Description
includeWatchonly
(bool, optional, default=false)
also include watchonly addresses
Response
Name
Type
Description
"z_address"
(string)
a z address belonging to the wallet
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
z_listoperationids
z_listoperationids
The z_listoperationids
method returns the list of operation ids currently known to the wallet.
Arguments
Name
Type
Description
"status"
(string, optional)
filter result by the operation's state e.g. "success"
Response
Name
Type
Description
"operationid"
(string)
an operation id belonging to the wallet
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
z_listreceivedbyaddress
z_listreceivedbyaddress "address" ( minconf )
The z_listreceivedbyaddress
method returns a list of amounts received by a z address belonging to the node’s wallet.
Arguments
Name
Type
Description
address
(string)
the private address.
minconf
(numeric, optional, default=1)
only include transactions confirmed at least this many times
Result
An array of json objects, each having the properties below.
Name
Type
Description
txid
(string)
the transaction id
amount
(numeric)
the amount of value in the note
memo
(string)
hexadecimal string representation of memo field
"confirmations"
(numeric)
a confirmation number that is aware of the dPoW security service
"rawconfirmations"
(numeric)
the raw confirmations (number of blocks on top of this transaction's block)
jsindex
(sprout)
(numeric, received only by sprout addresses) the joinsplit index
jsoutindex
(numeric, received only by sprout addresses)
the output index of the joinsplit
outindex
(numeric, sapling)
the output index
change
(boolean)
true if the address that received the note is also one of the sending addresses
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
z_listunspent
z_listunspent ( minconf maxconf includeWatchonly ["zaddr", ...] )
The z_listunspent
method returns an array of unspent shielded notes.
The method can also filter to only include results that have between minconf
and maxconf
(inclusive) confirmations, and also for specified z_addresses (["zaddr", ...])
.
When minconf
is 0
unspent notes with zero confirmations are returned, even though they are not immediately spendable.
Results are an array of Objects, each of which has: {txid, jsindex, jsoutindex, confirmations, address, amount, memo} (Sprout) {txid, outindex, confirmations, address, amount, memo} (Sapling)
Arguments
Name
Type
Description
minconf
(numeric, optional, default=1)
the minimum confirmations to filter
maxconf
(numeric, optional, default=9999999)
the maximum confirmations to filter
includeWatchonly
(bool, optional, default=false)
addresses
(array)
a json array of z addresses (both Sprout and Sapling) to act as a filter; duplicate addresses are not allowed
address
(string)
a z address
Results
An array of json objects, each having the properties below.
Name
Type
Description
txid
(string)
the transaction id
jsindex
(numeric)
the joinsplit index
jsoutindex
(numeric, only returned on sprout addresses)
the output index of the joinsplit
outindex
(numeric, only returned on sapling addresses)
the output index
"confirmations"
(numeric)
a confirmation number that is aware of the dPoW security service
"rawconfirmations"
(numeric)
the raw confirmations (number of blocks on top of this transaction's block)
spendable
(boolean)
true if note can be spent by wallet, false if note has zero confirmations, false if address is watchonly
address
(string)
the shielded address
amount
(numeric)
the amount of value in the note
memo
(string)
hexadecimal string representation of memo field
change
(boolean)
true if the address that received the note is also one of the sending addresses
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
z_mergetoaddress
z_mergetoaddress [ "fromaddress", ... ] "toaddress" ( fee ) ( transparent_limit ) ( shielded_limit ) ( memo )
::: warning CAUTION: z_mergetoaddress is DISABLED but can be enabled as an experimental feature. :::
The z_mergetoaddress
method merges multiple utxos and notes into a single utxo or note. The method works for both t addresses and z addresses, both separately and in combination. Coinbase utxos are ignored; use z_shieldcoinbase
to combine those into a single note.
This is an asynchronous operation, and utxos selected for merging will be locked. If there is an error, they are unlocked. The RPC call listlockunspent
can be used to return a list of locked utxos.
The number of utxos and notes selected for merging can be limited by the caller. If the transparent limit parameter is set to 0
, the mempooltxinputlimit
option will determine the number of utxos. Any limit is constrained by the consensus rule defining a maximum transaction size of 100000 bytes.
The fromaddresses array
The following special strings are accepted inside the fromaddresses
array:
"*"
: Merge both utxos and notes from all addresses belonging to the wallet"ANY_TADDR"
: Merge utxos from all t addresses belonging to the wallet"ANY_ZADDR"
: Merge notes from all z addresses belonging to the wallet
If a special string is given, any given addresses of that type will be ignored
Arguments
Name
Type
Description
fromaddresses
(string, required)
"address"
(string)
can be a t address or a z address
"toaddress"
(string, required)
the t address or z address to receive the combined utxo
fee
(numeric, optional, default=0.0001)
the fee amount to attach to this transaction
transparent_limit
(numeric, optional, default=50)
shielded_limit
(numeric, optional, default=10)
limit on the maximum number of hidden notes to merge; you may set this value to 0 to merge as many as will fit in the transaction
"memo"
(string, optional)
encoded as hex; when toaddress
is a z address, this value will be stored in the memo field of the new note
Response
Name
Type
Description
"remainingUTXOs"
(numeric)
the number of utxos still available for merging
"remainingTransparentValue"
(numeric)
the value of utxos still available for merging
"remainingNotes"
(numeric)
the number of notes still available for merging
"remainingShieldedValue"
(numeric)
the value of notes still available for merging
"mergingUTXOs"
(numeric)
the number of utxos being merged
"mergingTransparentValue"
(numeric)
the value of utxos being merged
"mergingNotes"
(numeric)
the number of notes being merged
"mergingShieldedValue"
(numeric)
the value of notes being merged
"opid"
(string)
an operationid to pass to z_getoperationstatus
to get the result of the operation
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
z_sendmany
z_sendmany "fromaddress" [ { "address": ..., "amount": ... }, ... ] ( minconf ) ( fee )
The z_sendmany
method sends one or more transactions at once, and allows for sending transactions of types t --> t
, t --> z
, z --> z
, z --> t
. It is the principle method for dealing with shielded z
transactions in the Komodo ecosystem.
The amount
values are double-precision floating point numbers. Change from a t address flows to a new t address address, while change from z address returns to itself. When sending coinbase utxos to a z address, change is not allowed. The entire value of the utxo(s) must be consumed. Currently, the maximum number of z address outputs is 54 due to transaction-size limits.
Arguments
Name
Type
Description
"fromaddress"
(string, required)
the sending t address or z address
"amounts"
(array of json objects)
"address"
(string, required)
the receiving address; can be a t address or z address
"amount"
(numeric, required)
the numeric amount
"memo"
(string, optional)
if the address is a z address, this property accepts raw data represented in hexadecimal string format
minconf
(numeric, optional, default=1)
only use funds confirmed at least this many times
fee
(numeric, optional, default=0.0001)
the fee amount to attach to this transaction
Response
Name
Type
Description
"operationid"
(string)
an operationid to pass to z_getoperationstatus to get the result of the operation
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
Command:
<collapse-text hidden title="Response">
</collapse-text>
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
z_shieldcoinbase
z_shieldcoinbase "fromaddress" "tozaddress" ( fee ) ( limit )
The z_shieldcoinbase
method shields transparent coinbase funds by sending the funds to a shielded z address. This is an asynchronous operation and utxos selected for shielding will be locked. If there is an error, they are unlocked.
The RPC call listlockunspent
can be used to return a list of locked utxos. The number of coinbase utxos selected for shielding can be limited by the caller. If the limit parameter is set to zero, the mempooltxinputlimit option will determine the number of uxtos. Any limit is constrained by the consensus rule defining a maximum transaction size of 100000 bytes.
Arguments
Name
Type
Description
"fromaddress"
(string, required)
the address is a t address or "*"
for all t address belonging to the wallet
"toaddress"
(string, required)
the address is a z address
fee
(numeric, optional, default=0.0001)
the fee amount to attach to this transaction
limit
(numeric, optional, default=50)
limit on the maximum number of utxos to shield; set to 0
to use node option mempooltxinputlimit
Response
Name
Type
Description
"remainingUTXOs"
(numeric)
the number of coinbase utxos still available for shielding
"remainingValue"
(numeric)
the value of coinbase utxos still available for shielding
"shieldingUTXOs"
(numeric)
the number of coinbase utxos being shielded
"shieldingValue"
(numeric)
the value of coinbase utxos being shielded
"opid"
(string)
an operationid to pass to z_getoperationstatus to get the result of the operation
📌 Examples
Command:
<collapse-text hidden title="Response">
</collapse-text>
Command:
<collapse-text hidden title="Response">
</collapse-text>
You can find your rpcuser
, rpcpassword
, and rpcport
in the coin's .conf
file.
Command:
<collapse-text hidden title="Response">
</collapse-text>
zcbenchmark
zcbenchmark benchmarktype samplecount
The zcbenchmark
method runs a benchmark of the selected benchmarktype
. This benchmark is calculated samplecount
times.
When finished, the method returns the running times of each sample.
Arguments
Name
Type
Description
"benchmarktype"
(string, required)
the type of the benchmark
"samplecount"
(numeric)
the number of samples to take
Response
Name
Type
Description
"runningtime"
(numeric)
the time it took to run the selected benchmarktype
Output:
zcrawjoinsplit
zcrawjoinsplit rawtx inputs outputs vpub_old vpub_new
::: warning DEPRECATED. :::
inputs: a JSON object mapping {note: zcsecretkey, ...}
outputs: a JSON object mapping {zcaddr: value, ...}
Splices a joinsplit into a raw transaction. Inputs are unilaterally confidential. Outputs are confidential between sender/receiver. The vpub_old and vpub_new values are globally public and move transparent value into or out of the confidential value store, respectively.
Note: The caller is responsible for delivering the output enc1 and enc2 to the appropriate recipients, as well as signing rawtxout and ensuring it is mined. (A future RPC call will deliver the confidential payments in-band on the blockchain.)
Output:
zcrawkeygen
zcrawkeygen
::: warning DEPRECATED. :::
the zcrawkeygen
method generates a zcaddr which can send and receive confidential values.
Output:
zcrawreceive zcsecretkey encryptednote
zcrawreceive zcsecretkey encryptednote
::: warning DEPRECATED. :::
Decrypts encryptednote
and checks if the coin commitments are in the blockchain as indicated by the "exists" result.
Output:
zcsamplejoinsplit
Perform a joinsplit and return the JSDescription.
Last updated
Was this helpful?