命令和参数

可以在配置文件中指定(除了``-datadir``和``-conf``之外)的所有命令行选项,也可以在命令行中指定所有配置文件选项。命令行选项会覆盖配置文件中的设定值。配置文件是一个包含``setting=value``的列表,每行都有,除此之外,文件中还包括以 # 字符开头的可选注释。

配置文件不是自动创建的。用户可以通过纯文本编辑器来完成创建。在默认情况下,dash-qt(或dashd)会在达世币数据目录中查找名为``dash.conf``的文件。不过,用户可以使用 -datadir 和 -conf 命令行来更改数据目录和配置文件路径。

平台 数据文件夹路径 配置文件的通常路径
Linux ~/ /home/username/.dashcore/dash.conf
macOS ~/Library/Application Support/ /Users/username/Library/Application Support/DashCore/dash.conf
Windows %APPDATA%

(Vista-10) C:\Users\username\AppData\Roaming\DashCore\dash.conf

(2000-XP) C:\Documents and Settings\username\Application Data\DashCore\dash.conf

注意:如果用户在测试网环境下运行达世币核心钱包,子文件夹 testnet3 会被自动添加到数据目录中。

命令行参数

These commands are accurate as of Dash Core version 0.13.0.0.

dashd

Dash Core Daemon

使用

dashd [选项]
开启Dash Core Daemon

选项

--help Print this help message and exit
--version 打印版本并退出
--alerts 接收并显示P2P网络的警报(默认值:1)
--alertnotify=<cmd>
 在接收到相关警报或看到相当长的分叉后执行命令(cmd中的%s被消息所替代)
--blocknotify=<cmd>
 在最佳区块更改时执行命令(cmd中的%s被区块哈希值所替代)
--assumevalid=<hex>
 如果该区块在区块链中,则假设该区块及此前的区块有效并可能跳过其脚本验证(0 来验证全部, 默认: 00000000000000b4181bbbdddbae464ce11fede5d0292fb63fdede1e7c8ab21c, 测试网: 00000ce22113f3eb8636e225d6a1691e132fdd587aed993e1bc9b07a0235eea4)
--conf=<file> 指定配置文件(默认:dash.conf)
--daemon 在后台运行,以作为守护进程并接收命令
--datadir=<dir>
 指定数据目录
--dbcache=<n> 以兆字节为单位设置数据库缓存大小(4 至 16384, 默认: 100)
--loadblock=<file>
 在启动时从外部的blk000??.dat文件中导入区块
--maxorphantx=<n>
 在内存中最多保留<n>个不可连接的交易(默认值:100)
--maxmempool=<n>
 使交易内存池维持在<n>兆字节以下(默认值:300)
--mempoolexpiry=<n>
 不要在内存池中保留超过<n>小时的交易(默认值:72)
--blockreconstructionextratxn=<n>
 Extra transactions to keep in memory for compact block reconstructions (default: 100)
--par=<n> 设置脚本验证线程的数量(范围:-1到16,0 则为自动设置,<0 则为闲置,默认值:0)
--pid=<file> 指定pid文件(默认值:dashd.pid)
--prune=<n> Reduce storage requirements by enabling pruning (deleting) of old blocks. This allows the pruneblockchain RPC to be called to delete specific blocks, and enables automatic pruning of old blocks if a target size in MiB is provided. This mode is incompatible with -txindex and -rescan. Warning: Reverting this setting requires re-downloading the entire blockchain. (default: 0 = disable pruning blocks, 1 = allow manual pruning via RPC, >945 = automatically prune block files to stay under the specified target size in MiB)
--reindex-chainstate
 以当前索引的区块为基础重建区块链状态
--reindex 以磁盘上的 blk*.dat文件为基础重建区块链状态和区块索引
--sysperms 使用系统默认权限而不是umask 077创建新文件(仅对已禁用的钱包功能有效)
--txindex 维护getrawtransaction rpc所使用的完整的交易索引(默认值:1)
--addressindex 维护完整的地址索引,以便查询钱包地址上的余额、交易ID和未使用的输出(默认值:0)
--timestampindex
 维护区块哈希值的时间戳索引,以便通过一系列时间戳查询区块哈希值(默认值:0)
--spentindex 维护一个完整的支付索引,以便查询输出点的消费交易ID和输入索引(默认值:0)

连接选项

--addnode=<ip> 添加想要连接的节点,并尝试保持连接的开放
--allowprivatenet
 Allow RFC1918 addresses to be relayed and connected to (default: 0)
--banscore=<n> 对连接不畅或操作不当的其他用户设置的阈值(默认值:100)
--bantime=<n> 防止操作不当的其他用户重新连接的秒数(默认值:86400)
--bind=<addr> 绑定到既定的地址,并始终读取它的消息。使用IPv6协议的[host]:端口
--connect=<ip> Connect only to the specified node(s); -noconnect or -connect=0 alone to disable automatic connections
--discover 发现个人的IP地址(默认值:1表示始终读取,没有-externalip 或 -proxy)
--dns 允许DNS查找-addnode、-seednode和-connect(默认值:1)
--dnsseed Query for peer addresses via DNS lookup, if low on addresses (default: 1 unless -connect/-noconnect)
--externalip=<ip>
 指定个人的公共地址
--forcednsseed 始终通过DNS查询其他用户的地址(默认值:0)
--listen 允许来自外部的连接(默认值:如果不是-proxy 或-connect,则默认值为1)
--listenonion 自动创建Tor隐藏服务(默认值:1)
--maxconnections=<n>
 最多与<n>位其他用户保持连接(其中不包括临时的服务连接)(默认值:125)
--maxreceivebuffer=<n>
 每次连接的最大数据接收缓存为<n>*1000字节(默认值:5000)
--maxsendbuffer=<n>
 每次连接的最大数据发送缓存为<n>*1000字节(默认值:1000)
--maxtimeadjustment
 Maximum allowed median peer time offset adjustment. Local perspective of time may be influenced by peers forward or backward by this amount. (default: 4200 seconds)
--onion=<ip:port>
 使用独立的SOCKS5代理和Tor隐藏服务连接到其它用户(默认值:-proxy)
--onlynet=<net>
 仅连接到网络<net>中的节点(ipv4, ipv6 或 onion)
--permitbaremultisig
 通过非P2SH 多重签名完成中转(默认值:1)
--peerbloomfilters
 支持用户使用bloom过滤器来过滤区块和交易(默认值:1)
--port=<port> 读取<port>上的连接(默认值:9999或测试网:19999)
--proxy=<ip:port>
 通过SOCKS5代理建立连接
--proxyrandomize
 随意排列各个代理连接的凭证。这项操作将激活Tor的流量隔离功能(默认值:1)
--seednode=<ip>
 连接到节点,以便检索其他用户的地址,然后断开连接
--timeout=<n> 以毫秒为单位指定连接超时(最小值:1,默认值:5000)
--torcontrol=<ip:port>
 在启用洋葱读取功能的前提下使用Tor控制端口(默认值:127.0.0.1:9051)
--torpassword=<pass>
 Tor控制端口的密码(默认值:空)
--upnp 使用通用即插即用功能映射读取端口(默认值:0)
--whitebind=<addr>
 绑定到既定地址并将连接到该地址的用户列入白名单。使用IPv6的[host]:端口
--whitelist=<IP address or network>
 Whitelist peers connecting from the given IP address (e.g. 1.2.3.4) or CIDR notated network (e.g. 1.2.3.0/24). Can be specified multiple times.
--whitelistrelay
 即使没有出现交易中继,也总是接受来自白名单用户的中继交易(默认值:1)
--whitelistforcerelay
 Force relay of transactions from whitelisted peers even if they violate local relay policy (default: 1)
--maxuploadtarget=<n>
 使出站流量维持在既定目标以下(单位为MiB/24小时),0 表示无限制(默认值:0)

钱包选项

--disablewallet
 不要加载钱包,并禁用钱包的远程过程调用功能
--keypool=<n> 将密钥池的大小设置为<n>(默认值:1000)
--fallbackfee=<amt>
 A fee rate (in DASH/kB) that will be used when fee estimation has insufficient data (default: 0.00001)
--mintxfee=<amt>
 Fees (in DASH/kB) smaller than this are considered zero fee for transaction creation (default: 0.00001)
--paytxfee=<amt>
 添加到发送的交易所需的费用(DASH/kB)(默认值:0.00)
--rescan 在启动时重新扫描区块链,以便查找丢失的交易
--salvagewallet
 Attempt to recover private keys from a corrupt wallet on startup
--spendzeroconfchange
 在发送交易时使用未经确认的零钱(默认值:1)
--txconfirmtarget=<n>
 If paytxfee is not set, include enough fee so transactions begin confirmation on average within n blocks (default: 6)
--usehd Use hierarchical deterministic key generation (HD) after BIP39/BIP44. Only has effect during wallet creation/first start (default: 0)
--mnemonic User defined mnemonic for HD wallet (BIP39). Only has effect during wallet creation/first start (default: randomly generated)
--mnemonicpassphrase
 User defined mnemonic passphrase for HD wallet (BIP39). Only has effect during wallet creation/first start (default: empty string)
--hdseed 用户定义的HD钱包的种子(应为十六进制)。这项功能只在钱包创建/首次启动时有效(默认值:随机生成)
--upgradewallet
 在启动时将钱包升级到最新格式
--wallet=<file>
 (在数据目录中)指定钱包文件(默认值:wallet.dat)
--walletbroadcast
 确保钱包广播交易(默认值:1)
--walletnotify=<cmd>
 钱包交易发生变化时执行命令(cmd中的%s被交易ID所替代)
--zapwallettxes=<mode>
 删除所有钱包交易,并且仅在启动时通过-rescan恢复区块链的部分(1表示保留交易元数据,例如账户所有人和请求支付的信息,2 表示删除交易元数据)
--createwalletbackups=<n>
 自动钱包备份的数量(默认值:10)
--walletbackupsdir=<dir>
 指定自动钱包备份的目录的完整路径(前提是自动钱包备份必须存在)
--keepass 借助KeePassHttp插件来使用KeePass 2集成功能(默认值:0)
--keepassport=<port>
 通过端口<port>上连接到KeePassHttp(默认值:19455)
--keepasskey=<key>
 借助KeePassHttp密钥使用KeePass 加密通信功能
--keepassid=<name>
 已建立关联的KeePassHttp身份
--keepassname=<name>
 用于为KeePass条目构建网址的名称。该条目存储了钱包的密码

ZeroMQ通知选项

--zmqpubhashblock=<address>
 在<address>中启用发布哈希区块的功能
--zmqpubhashtx=<address>
 在<address>中启用发布哈希交易的功能
--zmqpubhashtxlock=<address>
 在<address>中启用发布哈希交易的功能(通过即时发送功能锁定资金)
--zmqpubhashgovernancevote=<address>
 在 <address> 中启用发布管理投票的哈希值
--zmqpubhashgovernanceobject=<address>
 在 <address> 中启用发布管理对象(例如提案)的哈希值
--zmqpubhashinstantsenddoublespend=<address>
 在 <address> 中启用发布尝试即时发送双花支付的交易哈希值
--zmqpubrawblock=<address>
 在<address>中启用发布原始区块的功能
--zmqpubrawtx=<address>
 在<address>中启用发布原始交易的功能
--zmqpubrawtxlock=<address>
 在<address>中启用发布原始交易的功能(通过即时发送功能锁定资金)
--zmqpubrawinstantsenddoublespend=<address>
 在 <address> 中启用发布尝试即时发送双花支付的原始交易

调试/测试选项

--uacomment=<cmt>
 将注释添加到用户代理字符串
--debug=<category>
 Output debugging information (default: 0, supplying <category> is optional). If <category> is not supplied or if <category> = 1, output all debugging information.<category> can be: addrman, alert, bench, cmpctblock, coindb, db, http, leveldb, libevent, lock, mempool, mempoolrej, net, proxy, prune, rand, reindex, rpc, selectcoins, tor, zmq, dash (or specifically: gobject, instantsend, keepass, masternode, mnpayments, mnsync, privatesend, spork).
--help-debug 显示所有的调试选项(用法:–help -help-debug)
--logips 在调试输出中包含IP地址(默认值:0)
--logtimestamps
 使用时间戳预先调试输出(默认值:1)
--minrelaytxfee=<amt>
 Fees (in DASH/kB) smaller than this are considered zero fee for relaying, mining and transaction creation (default: 0.00001)
--maxtxfee=<amt>
 Maximum total fees (in DASH) to use in a single wallet transaction or raw transaction; setting this too low may abort large transactions (default: 0.10)
--printtoconsole
 将追踪和调试信息发送到控制台而不是debug.log文件
--printtodebuglog
 将追踪和调试信息发送到debug.log文件(默认值:1)
--shrinkdebugfile
 在启动客户端时缩小debug.log文件(默认值:在没有-debug的前提下,默认值是1)

区块链选择的选项

--testnet 使用测试区块链
--devnet=<name>
 Use devnet chain with provided name
--litemode=<n> 禁用所有达世币的特定功能(主节点、匿名发送、即时发送和管理机制等)(范围:0-1,默认值:0)
--sporkaddr=<hex>
 Override spork address. Only useful for regtest and devnet. Using this on mainnet or testnet will ban you.
--minsporkkeys=<n>
 Overrides minimum spork signers to change spork value. Only useful for regtest and devnet. Using this on mainnet or testnet will ban you.

主节点选项

--masternode=<n>
 以客户端充当主节点(范围:0-1,默认值:0)
--mnconf=<file>
 指定主节点配置文件(默认值:masternode.conf)
--mnconflock=<n>
 通过主节点配置文件锁定主节点(默认值:1)
--masternodeprivkey=<n>
 设置主节点私钥
--masternodeblsprivkey=<hex>
 Set the masternode BLS private key

匿名发送选项

--enableprivatesend=<n>
 批准对本钱包中的资金自动使用匿名发送功能(0-1,默认值:0)
--privatesendmultisession=<n>
 对每个区块使用多重匿名发送混币流程,这是一个实验性的操作(0-1,默认值:0)
--privatesendsessions=<n>
 Use N separate masternodes in parallel to mix funds (1-10, default: 4)
--privatesendrounds=<n>
 Use N separate masternodes for each denominated input to mix funds (2-16, default: 4)
--privatesendamount=<n>
 Keep N DASH anonymized (2-21000000, default: 1000)
--liquidityprovider=<n>
 通过不频繁的混币操作为匿名发送功能提供流动性(范围:0-100,默认值:0,1表示非常频繁和高额费用,100 表示频率和费用极低)

即时发送选项

--enableinstantsend=<n>
 启用即时发送功能,显示有关交易锁定的确认信息(范围:0-1,默认值:1)
--instantsendnotify=<cmd>
 当成功锁定即时发送功能时执行命令(cmd中的%s被替换为交易ID)

节点中继选项

--bytespersigop
 在中继和挖矿活动中,每个sigop的最小字节数(默认值:20)
--datacarrier 在中继和挖矿活动中的数据载体交易(默认值:1)
--datacarriersize
 在中继和挖矿活动中,数据载体交易的数据最大值(默认值:83)

区块创建选项

--blockmaxsize=<n>
 Set maximum block size in bytes (default: 2000000)
--blockprioritysize=<n>
 以字节为单位设置高优先级和最低交易成本的交易(默认值:10000)
--blockmintxfee=<amt>
 Set lowest fee rate (in DASH/kB) for transactions to be included in block creation. (default: 0.00001)

远程过程调用服务器选项

--server 接受命令行和JSON-RPC命令
--rest 接受公共REST请求(默认值:0)
--rpcbind=<addr>
 绑定到既定地址以等待JSON-RPC连接。使用IPv6的 [host]:端口。用户可以多次设定这个选项(默认值:绑定到所有接口)
--rpccookiefile=<loc>
 身份验证cookie的位置(默认值:数据目录)
--rpcuser=<user>
 JSON-RPC连接的用户名
--rpcpassword=<pw>
 JSON-RPC连接的密码
--rpcauth=<userpw>
 Username and hashed password for JSON-RPC connections. The field <userpw> comes in the format: <USERNAME>:<SALT>$<HASH>. A canonical python script is included in share/rpcuser. The client then connects normally using the rpcuser=<USERNAME>/rpcpassword=<PASSWORD> pair of arguments. This option can be specified multiple times
--rpcport=<port>
 在<port>上等待JSON-RPC连接(默认值:9998或测试网:19998)
--rpcallowip=<ip>
 批准来自指定来源的JSON-RPC连接。对<ip>有效的是单个IP​​(例如1.2.3.4)、网络/网络掩码(例如1.2.3.4/255.255.255.0)或网络/ CIDR(例如1.2.3.4/24)。用户可以多次设定这个选项。
--rpcthreads=<n>
 设置远程过程调用的线程数(默认值:4)

dash-qt

Dash Core QT GUI,使用与dashd相同的命令行选项,并添加以下的用户界面设置。

使用

dash-qt [命令行选项]
启动Dash Core QT GUI

钱包选项

--windowtitle=<name>
 钱包窗口标题

调试/测试选项

--debug=<category>
 Output debugging information (default: 0, supplying <category> is optional). If <category> is not supplied or if <category> = 1, output all debugging information.<category> can be: addrman, alert, bench, cmpctblock, coindb, db, http, leveldb, libevent, lock, mempool, mempoolrej, net, proxy, prune, rand, reindex, rpc, selectcoins, tor, zmq, dash (or specifically: gobject, instantsend, keepass, masternode, mnpayments, mnsync, privatesend, spork), qt.

用户界面选项

--choosedatadir
 在启动时选择数据目录(默认值:0)
--lang=<lang> 设置语言,例如”de_DE”(默认值:系统定位)
--min 开始最小化
--rootcertificates=<file>
 为支付申请设置SSL root 认证(默认值:-system-)
--splash 启动时显示启动画面(默认值:1)
--resetguisettings
 重置GUI变更的所有设置

dash-cli

Dash Core RPC客户端

使用

dash-cli [options] <command> [params]
向Dash Core发送命令
dash-cli [options] help
命令列表
dash-cli [options] help <command>
获得帮助命令

选项

--help 这则帮助信息
--conf=<file> 指定配置文件(默认:dash.conf)
--datadir=<dir>
 指定数据目录

区块链选择的选项

--testnet 使用测试区块链
--devnet=<name>
 Use devnet chain with provided name
--regtest 进入回归测试模式,该模式使用一个特殊的链,可以立即处理区块。这项操作适用于回归测试工具和应用程序开发。
--named Pass named instead of positional arguments (default: false)
--rpcconnect=<ip>
 向在<ip>运行的节点发送命令(默认: 127.0.0.1)
--rpcport=<port>
 在<port>连接JSON-RPC(默认:9998或测试网:19998)
--rpcwait 等待RPC服务启动
--rpcuser=<user>
 JSON-RPC连接的用户名
--rpcpassword=<pw>
 JSON-RPC连接的密码
--rpcclienttimeout=<n>
 HTTP请求超时(默认:900)
--stdin Read extra arguments from standard input, one per line until EOF/Ctrl-D (recommended for sensitive information such as passphrases)

dash-tx

Dash Core dash-tx 功能

使用

dash-tx [options] <hex-tx> [commands]
升级十六进制达世币交易
dash-tx [options] -create [commands]
创建十六进制达世币交易

选项

--help 这则帮助信息
--create 创建新的,空白交易。
--json 选择JSON输出
--txid 仅输出交易结果的十六进制编码的交易ID

区块链选择的选项

--testnet 使用测试区块链
--devnet=<name>
 Use devnet chain with provided name
--regtest 进入回归测试模式,该模式使用一个特殊的链,可以立即处理区块。这项操作适用于回归测试工具和应用程序开发。

命令

delin=N
从交易中删除输入N
delout=N
从交易中删除输出N
in=TXID:VOUT
向交易增加输入
locktime=N
设置交易锁定时间为N
nversion=N
设置交易版本为N
outaddr=VALUE:ADDRESS
向交易增加基于地址的输出
outpubkey=VALUE:PUBKEY[:FLAGS]
Add pay-to-pubkey output to TX. Optionally add the “S” flag to wrap the output in a pay-to-script-hash.
outdata=[VALUE:]DATA
向交易增加基于数据的输出
outscript=VALUE:SCRIPT[:FLAGS]
Add raw script output to TX. Optionally add the “S” flag to wrap the output in a pay-to-script-hash.
outmultisig=VALUE:REQUIRED:PUBKEYS:PUBKEY1:PUBKEY2:….[:FLAGS]
Add Pay To n-of-m Multi-sig output to TX. n = REQUIRED, m = PUBKEYS. Optionally add the “S” flag to wrap the output in a pay-to-script-hash.
sign=SIGHASH-FLAGS
为交易添加零个或多个签名。这一命令要求JSON registers:prevtxs=JSON object且privatekeys=JSON object。有关sighash标志和JSON对象的格式的更多信息请参考signrawtransaction文件。

注册命令

load=NAME:FILENAME
Load JSON file FILENAME into register NAME
set=NAME:JSON-STRING
Set register NAME to given JSON-STRING

RPC 命令

This documentation lists all available RPC commands as of Dash version 0.13.0.0, and limited documentation on what each command does. For full documentation of arguments, results and examples, type help ( “command” ) to view full details at the console. You can enter commands either from Tools > Debug console in the QT wallet, or using dash-cli for headless wallets and dashd.

地址索引

getaddressbalance
返回(多)地址的余额(需启用addressindex功能)。
getaddressdeltas
返回地址的所有零钱(需启用addressindex功能)。
getaddressmempool
返回地址的所有内存池(需启用addressindex功能)。
getaddresstxids
返回(多)地址的所有交易ID(需启用addressindex功能)。
getaddressutxos
返回地址的所有未发送的输出(需启用addressindex功能)。

区块链

getbestblockhash
Returns the hash of the best (tip) block in the longest blockchain.
getblock “blockhash” ( verbosity )
If verbosity is 0, returns a string that is serialized, hex-encoded data for block ‘hash’. If verbosity is 1, returns an Object with information about block <hash>. If verbosity is 2, returns an Object with information about block <hash> and information about each transaction.
getblockchaininfo
Returns an object containing various state info regarding blockchain processing.
getblockcount
Returns the number of blocks in the longest blockchain.
getblockhash height
Returns hash of block in best-block-chain at height provided.
getblockhashes timestamp
返回在既定的时间戳范围内的区块哈希数组。
getblockheader “hash” ( verbose )
如果verbose错误,则为blockheader哈希返回序列化’的十六进制字符串数据。如果verbose正确,则返回包含blockheader<hash>的相关信息的对象。
getblockheaders “hash” ( count verbose )
返回一个项目数组,数组中包含从<hash>开始的blockheader<count>的信息。如果verbose错误,则每个项目都应是单个区块头的序列化’的十六进制字符串。如果verbose正确,则每个项目都应是包含单个blockheader相关信息的对象。
getchaintips ( count branchlen )
返回有关区块树中所有已知末梢的信息,包括主链和独立分支。
getdifficulty
将工作量证明难度作为最小难度的倍数返回。
getmempoolancestors txid (verbose)
If txid is in the mempool, returns all in-mempool ancestors.
getmempooldescendants txid (verbose)
If txid is in the mempool, returns all in-mempool descendants.
getmempoolentry txid
Returns mempool data for given transaction.
getmempoolinfo
返回有关交易内存值的活跃状态的细节信息。
getrawmempool ( verbose )
将交易ID的JSON数组作为内存池中的所有交易ID予以返回。
getspentinfo
返回输出所用的交易ID和索引。
gettxout “txid” n ( include_mempool )
返回有关未使用的交易输出的详细信息。
gettxoutproof [“txid”,…] ( blockhash )
返回一个十六进制编码的证明,其中”交易ID”包含在一个区块当中。
gettxoutsetinfo
返回有关未使用的交易输出的统计信息。需要注意的是这个步骤需要花费一些时间。
preciousblock “blockhash”
Treats a block as if it were received before others with the same work. A later preciousblock call can override the effect of an earlier one. The effects of preciousblock are not retained across restarts.
pruneblockchain
Prune blockchain up to specified height or unix timestamp.
verifychain ( checklevel nblocks )
验证区块链数据库。
verifytxoutproof “proof”
Verifies that a proof points to a transaction in a block, returning the transaction it commits to and throwing an RPC error if the block is not in our best chain.

Control

debug ( 0 | 1 | addrman | alert | bench | coindb | db | lock | rand | rpc | selectcoins | mempool | mempoolrej | net | proxy | prune | http | libevent | tor | zmq | dash | privatesend | instantsend | masternode | spork | keepass | mnpayments | gobject )
Change debug category on the fly. Specify single category or use ‘+’ to specify many.
getinfo
DEPRECATED. Returns an object containing various state info.
getmemoryinfo
Returns an object containing information about memory usage
help ( “command” ) (“subCommand”)
List all commands, or get help for a specified comm
stop
停止Dash Core服务器。

达世币

getgovernanceinfo
返回包含管理参数的对象。
getpoolinfo
返回包含混币池的相关信息的对象。
getsuperblockbudget index
返回允许的超级块支付的最大绝对值。
gobject “command”…

管理管理对象。可用命令:

check
验证管理对象数据(仅限提案)
prepare
通过签名和创建交易来准备管理对象
submit
将管理对象提交到网络
deserialize
将管理对象从十六进制字符串反序列化为JSON
count
Count governance objects and votes (additional param: ‘json’ or ‘all’, default: ‘json’)
get
通过哈希值获取管理对象
getvotes
获取为管理对象哈希值所进行的投票(包括之前的投票)
getcurrentvotes
获取管理对象哈希值的(当前)投票(不包括之前的投票)。
list
列出管理对象(可以通过信号和/或对象类型进行过滤)
diff
列出自上次diff后出现的差异
vote-alias
通过主节点别名对管理对象进行投票(通过masternode.conf完成设置)
vote-conf
通过dash.conf中配置的主节点对管理对象进行投票
vote-many
通过所有主节点对管理对象进行投票(通过masternode.conf完成设置)
masternode “command”…

用于执行与主节点相关的操作的命令集。可用命令:

check
Force check all masternodes and remove invalid ones
count
Get information about number of masternodes (DEPRECATED options: ‘total’, ‘ps’, ‘enabled’, ‘qualify’, ‘all’)
current
打印当前主节点获奖者的信息,以便在下一个区块中予以支付(本地计算)
genkey
Generate new masternodeprivkey, optional param: ‘compressed’ (boolean, optional, default=false) generate compressed privkey
outputs
打印主节点兼容性输出
start-alias
通过masternode.conf中配置的已分配别名启动单个的远程主节点
start-<mode>
启动masternode.conf中配置的远程主节点(<mode>可代表all、missing或disabled)
status
打印主节点状态信息
list
打印所有已知主节点的名单(查阅主节点名单来了解更多信息)
list-conf
以JSON的格式打印masternode.conf
winner
打印下一位主节点获奖者的信息,以便投票
winners
打印主节点获奖者名单
masternodebroadcast “command”…

用于创建和中继主节点广播消息的命令集。可用命令:

create-alias
通过masternode.conf中配置的已分配别名创建单个的远程主节点广播消息
create-all
为masternode.conf中配置的所有主节点创建远程主节点广播消息
decode
解码主节点广播消息
relay
在网络上中继主节点广播消息
masternode list ( “mode” “filter” )
Get a list of masternodes in different modes. This call is identical to masternodelist call.
mnsync [status | next | reset]
返回同步状态,更新到下一步或完全重置。
privatesend “command”

可用命令:

start
Start mixing
stop
Stop mixing
reset
Reset mixing
sentinelping version
Sentinel ping.
spork “command”

Shows information about current state of sporks. Available commands:

show
Show all current spork values
active
Show which sporks are active
voteraw <masternode-tx-hash> <masternode-tx-index> <governance-hash> <vote-signal> [yes | no | abstain] <time> <vote-sig>
Compile and relay a governance vote with provided external signature instead of signing vote internally

Evo

bls “command” …

Set of commands to execute BLS related actions. Available commands:

generate
Create a BLS secret/public key pair
protx “command” …

Set of commands to execute ProTx related actions. Available commands:

register
Create and send ProTx to network
register_fund
Fund, create and send ProTx to network
register_prepare
Create an unsigned ProTx
register_submit
Sign and submit a ProTx
list
List ProTxs
info
Return information about a ProTx
update_service
Create and send ProUpServTx to network
update_registrar
Create and send ProUpRegTx to network
revoke
Create and send ProUpRevTx to network
diff
Calculate a diff and a proof between two masternode lists

Generating

generate nblocks ( maxtries )
Mine up to nblocks blocks immediately (before the RPC call returns)
generatetoaddress nblocks address (maxtries)
Mine blocks immediately to a specified address (before the RPC call returns)

挖矿

getblocktemplate ( TemplateRequest )
如果请求参数包含’模式’键,则请求参数用于在默认’模板’请求或’提议’之间做出选择。它返回构建区块所需的数据。
getmininginfo
返回包含与挖矿相关的信息的JSON对象。
getnetworkhashps ( nblocks height )
基于最后的n个块返回每秒钟的网络哈希值。输入[blocks]来覆盖# of blocks,-1用于指定最后一次的难度变化。输入[height]来计算找到某个区块时的网络速度。
prioritisetransaction <txid> <priority delta> <fee delta>
Accepts the transaction into mined blocks at a higher (or lower) priority
submitblock “hexdata” ( “jsonparametersobject” )
尝试向网络提交新的区块。目前, ‘jsonparametersobject’ 参数已被忽略。如需阅读规范全文,请访问网址 https://en.bitcoin.it/wiki/BIP_0022

Network

addnode “node” “add | remove | onetry”
尝试在addnode列表中添加或删除节点,或尝试连接一个节点一次。
clearbanned
清除所有被禁用的IP。
disconnectnode “address”
立即断开与某个节点的连接。
getaddednodeinfo ( “node” )
Returns information about the given added node, or all added nodes (note that onetry addnodes are not listed here)
getconnectioncount
返回与其他节点的连接数量。
getnettotals
返回有关网络流量的信息,其中包括字节数、字节输出和当前时间。
getnetworkinfo
返回包含有关P2P网络的各种状态信息的对象。
getpeerinfo
以JSON对象数组的形式返回有关每个连接的网络节点的数据。
listbanned
列出所有禁用的IP/子网。
ping
请求将ping发送到所有其它节点,以测量ping时间。 以getpeerinfo、pingtime和pingwait字段的形式显示结果。 Ping命令和所有其它命令一起在队列中等待处理,因此它将测量积压的待办事项,而不仅仅是网络ping。
setban “subnet” “add | remove” (bantime) (absolute)
尝试在被禁列表中添加或删除IP或子网。
setnetworkactive true | false
禁用/启用所有的P2P活动。

Rawtransactions

createrawtransaction [{“txid”:”id”,”vout”:n},…] {“address”:amount,”data”:”hex”,…} ( locktime )
创建一个根据输入来完成交易并创建新输出的交易。输出可以是地址或数据。以十六进制编码返回原始交易。请注意,交易的输入未签名,并且不存储在钱包中或传输到网络上。
decoderawtransaction “hexstring”
返回表示序列化十六进制编码交易的JSON对象。
decodescript “hexstring”
解码十六进制编码的脚本。
fundrawtransaction “hexstring” ( options )
Add inputs to a transaction until it has enough in value to meet its out value. This will not modify existing inputs, and will add at most one change output to the outputs.
getrawtransaction “txid” ( verbose )
Return the raw transaction data. If verbose is ‘true’, returns an Object with information about ‘txid’. If verbose is ‘false’ or omitted, returns a string that is serialized, hex-encoded data for ‘txid’.
sendrawtransaction “hexstring” ( allowhighfees instantsend bypasslimits)
将序列化的(十六进制原始)交易提交到本地节点和网络。如需了解其它信息,请参阅createrawtransaction和signrawtransaction调用。
signrawtransaction “hexstring” ( [{“txid”:”id”,”vout”:n,”scriptPubKey”:”hex”,”redeemScript”:”hex”},…] [“privatekey1”,…] sighashtype )
以序列化的(十六进制编码)的形式签署原始交易的输入。第二个可选参数(可以为零)是此前交易的数组,它是交易所依赖的数组,但可能还不存在于区块链上。第三个可选参数(可以为零)是base58编码的私钥数组,如果这些参数已经给定,那么这些数组将是为交易签名的唯一数组。

Util

createmultisig nrequired [“key”,…]
创建一个多签名地址,其中用户需要取得m个签名中的n个才能授权交易。它返回一个带有地址和redeemScript的JSON对象。
estimatefee nblocks
估算交易中每千字节的费率,以便在nblocks区块中开始确认。
estimatepriority nblocks
DEPRECATED. Estimates the approximate priority a zero-fee transaction needs to begin confirmation within nblocks blocks.
estimatesmartfee nblocks
警告:本页面不稳定,可能出现页面消失或改变的情况。如有可能,请计算交易中每千字节的费率,以便在nblocks区块中开始确认。此外,请返回计算有效的区块数量。
estimatesmartpriority nblocks
DEPRECATED. WARNING: This interface is unstable and may disappear or change! Estimates the approximate priority a zero-fee transaction needs to begin confirmation within nblocks blocks if possible and return the number of blocks for which the estimate is valid.
signmessagewithprivkey “privkey” “message”
Sign a message with the private key of an address
validateaddress “address”
返回既定达世币地址的相关信息。
verifymessage “address” “signature” “message”
Verify a signed message

钱包

abandontransaction “txid”
将钱包内的交易<txid>标记为已放弃。这意味着该交易和后续的钱包内部交易已经被放弃,它们的输入将被重新分配。
addmultisigaddress nrequired [“key”,…] ( “account” )
向钱包添加一个无需签名的多重签名地址。每个私钥都是一个达世币地址或者十六进制编码的公钥。如果指定了“帐户”(DEPRECATED),则为该帐户分配地址。
backupwallet “destination”
Safely copies current wallet file to destination, which can be a directory or a path with filename.
dumphdinfo
返回包含有关本HD钱包的敏感隐私信息的对象。
dumpprivkey “address”
Reveals the private key corresponding to ‘address’. Then the importprivkey can be used with this output
dumpwallet “filename”
以用户可读的格式转存所有的钱包私钥。
getaccount “address”
超时。返回与既定地址关联的帐户。
getaccountaddress “account”
超时。返回当前用于本账户的支付接收的达世币地址。
getaddressesbyaccount “account”
超时。返回既定账户的地址列表。
getbalance ( “account” minconf addlocked include_watchonly )
如果没有指定账户,返回服务器上的可用总余额。如果指定了帐户(DEPRECATED),则返回帐户中的余额。请注意,帐户”“与参数留空不同。服务器上的可用总余额可能与默认帐户上的余额不同”“。
getnewaddress ( “account” )
Returns a new Dash address for receiving payments. If ‘account’ is specified (DEPRECATED), it is added to the address book so payments received with the address will be credited to ‘account’.
getrawchangeaddress
返回新达世币地址,用于接收零钱。这项用于原始交易,非正常使用。
getreceivedbyaccount “account” ( minconf addlocked )
超时。返回在地址上收到的总金额,这些<account>交易已经完成了最低限度的确认的交易。
getreceivedbyaddress “address” ( minconf addlocked )
Returns the total amount received by the given address in transactions with at least minconf confirmations.
gettransaction “txid” ( include_watchonly )
获取有关钱包内部交易<txid>的相关信息。
getunconfirmedbalance
Returns the server’s total unconfirmed balance
getwalletinfo
返回包含各种钱包状态信息的对象。
importaddress “address” ( “label” rescan p2sh )
添加一个(十六进制的)脚本或可以浏览的地址,这个地址存在于钱包当中,但不能用于消费。
importelectrumwallet “filename” index
从轻钱包输出文件中导入地址(.csv或.json)。
importmulti “requests” “options”
Import addresses/scripts (with private or public keys, redeem script (P2SH)), rescanning all addresses in one-shot-only (rescan can be disabled via options).
importprivkey “dashprivkey” ( “label” ) ( rescan )
把(由dumpprivkey返回的)一个私钥添加钱包。
importprunedfunds
Imports funds without rescan. Corresponding address or script must previously be included in wallet. Aimed towards pruned wallets. The end-user is responsible to import additional transactions that subsequently spend the imported outputs or rescan after the point in the blockchain the transaction is included.
importpubkey “pubkey” ( “label” rescan )
添加一个(十六进制的)可以浏览的公钥,这个地址存在于钱包当中,但不能用于消费。
importwallet “filename”
从钱包转存文件导入私钥(更多信息请参阅dumpwallet)。
instantsendtoaddress “address” amount ( “comment” “comment-to” subtractfeefromamount )
将金额发送到既定地址。金额应为实数,并四舍五入到0.00000001。
keepass <genkey | init | setpassphrase>
Keepass 设置。
keypoolrefill ( newsize )
Fills the keypool. Requires wallet passphrase to be set with walletpassphrase call.
listaccounts ( minconf addlocked include_watchonly)
超时。返回以账户名称为私钥、以账户余额为价值的对象。
listaddressbalances ( minamount )
Lists addresses of this wallet and their balances
listaddressgroupings
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
listlockunspent
返回暂时不能支出的输出的列表。请参考lockunspent调用来锁定和解锁支出交易。
listreceivedbyaccount ( minconf addlocked include_empty include_watchonly)
DEPRECATED. List incoming payments grouped by account.
listreceivedbyaddress ( minconf addlocked include_empty include_watchonly)
List incoming payments grouped by receiving address.
listsinceblock ( “blockhash” target_confirmations include_watchonly)
从[blockhash]区块中获取所有交易或省略所有交易。
listtransactions ( “account” count skip include_watchonly)
返回计算最近的交易,跳过来自 ‘账户’ 的第一笔交易。
listunspent ( minconf maxconf [“addresses”,…] [include_unsafe] )
返回在minconf和maxconf之间(包含)没有支出的交易输出数组。可过滤除向指定地址的支付之外的其它交易。
lockunspent unlock ([{“txid”:”txid”,”vout”:n},…])
更新暂时不能输出的列表。暂时锁定(unlock = false)或解锁(unlock = true)指定的交易输出。
move “fromaccount” “toaccount” amount ( minconf “comment” )
超时。将指定金额从钱包中的一个帐户移动到另一个帐户。
removeprunedfunds “txid”
Deletes the specified transaction from the wallet. Meant for use with pruned wallets and as a companion to importprunedfunds. This will effect wallet balances.
sendfrom “fromaccount” “toaddress” amount ( minconf addlocked “comment” “comment_to” )
DEPRECATED (use sendtoaddress). Sent an amount from an account to a dash address. Requires wallet passphrase to be set with walletpassphrase call.
sendmany “fromaccount” {“address”:amount,…} ( minconf addlocked “comment” [“address”,…] subtractfeefromamount use_is use_ps )
Send multiple times. Amounts are double-precision floating point numbers. Requires wallet passphrase to be set with walletpassphrase call.
sendtoaddress “address” amount ( “comment” “comment_to” subtractfeefromamount use_is use_ps )
将金额发送到指定地址。
setaccount “address” “account”
超时。设置与既定地址关联的账户。
setprivatesendamount amount
Set the goal amount in DASH for PrivateSend mixing.
setprivatesendrounds rounds
Set the number of rounds for PrivateSend mixing.
settxfee amount
设置每千字节的交易费用。覆盖paytxfee参数。
signmessage “address” “message”
Sign a message with the private key of an address Requires wallet passphrase to be set with walletpassphrase call.
walletlock
从内存中删除钱包的加密私钥并锁定钱包。调用这一方法后,用户需要再次调用walletpassphrase才能调用任何需要解锁钱包的方法。
walletpassphrase “passphrase” timeout ( mixingonly )
在内存中存储钱包解密私钥。在执行与私钥相关的交易,例如发送达世币之前,用户需要完成这项操作。
walletpassphrasechange “oldpassphrase” “newpassphrase”
将钱包密码从’oldpassphrase’更改为’newpassphrase’。