├── ADA - Cardano.md ├── BCH - BitcoinCash.md ├── BSV - BitcoinSV.md ├── BTC - Bitcoin.md ├── CMT - Cybermile.md ├── DASH - Dash.md ├── EOS - EOS.md ├── ERC20 - Ethereum ERC20 Token.md ├── ETH - Ethereum.md ├── LICENSE ├── LSK - Lisk.md ├── LTC - Litecoin.md ├── MERCI - MERCI.md ├── MONA - Monacoin.md ├── NEO - NEO.md ├── NEP- NEO NEP5 Token.md ├── OMNI - OmniLayer.md ├── QTUM - Qtum.md ├── README.md ├── TRC10 - Tron TRC10 Token.md ├── TRX - Tron.md ├── XLM - Stellar.md ├── XMR - Monero.md ├── XRP - Ripple.md ├── XTZ - Tezos.md └── ZEC - Zcash.md /ADA - Cardano.md: -------------------------------------------------------------------------------- 1 | # Cardano - ADA 2 | 3 | ### 文档版本:1.18.0 4 | 检查日期: 2020.07.29 5 | * 注意此版本需要更新配置文件 6 | 7 | ### 官网地址: 8 | https://www.cardano.org/ 9 | 10 | ### 钱包下载: 11 | https://github.com/input-output-hk/cardano-node 12 | 13 | ### 查询网站: 14 | https://cardanoexplorer.com/ 15 | 16 | ### 开发文档 17 | https://cardanodocs.com 18 | https://input-output-hk.github.io/cardano-wallet/api/edge/ 19 | 20 | ### 安装说明: 21 | 1、安装可参照此文档 22 | ``` 23 | https://docs.cardano.org/projects/cardano-node/en/latest/getting-started/install.html 24 | ``` 25 | * 如发生错误:I've had most trouble fulfilling: cardano-crypto-class 26 | ``` 27 | git clone https://github.com/input-output-hk/libsodium 28 | cd libsodium 29 | git checkout 66f017f1 30 | ./autogen.sh 31 | ./configure 32 | make 33 | sudo make install 34 | 35 | export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH" 36 | export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig 37 | ``` 38 | 39 | ### 配置文件: 40 | ``` 41 | https://hydra.iohk.io/job/Cardano/cardano-node/cardano-deployment/latest-finished/download/1/index.html 42 | ``` 43 | 44 | ### 升级说明: 45 | 1、下载新版代码 46 | 2、重新编译 47 | 3、检查配置 48 | 3、重新开启节点 49 | 50 | ### 创建地址: 51 | 1、创建助记词 52 | ``` 53 | cardano-address recovery-phrase generate --size XX 54 | XX是助记词的长度,可以是15、18、21、24 55 | ``` 56 | 2、将助记词创建入wallet 57 | ``` 58 | cardano-wallet wallet create from-recovery-phrase 设置钱包名称 --address-pool-gap 100 59 | 输入助记词 -> 二级助记词(可以不设置) -> 设置一个钱包密码 60 | 返回中会有钱包的ID 61 | ``` 62 | 3、等待钱包同步完成,可以通过以下命令查看同步状态 63 | ``` 64 | cardano-wallet wallet get 钱包ID 65 | ``` 66 | * 1.18.0版没有创建地址的命令,真不知道设计的人脑子怎么想的。 67 | * 解决方案是,每次获取unused的地址,然后往地址上打一笔最小金额的钱 68 | * 这样地址就会被用掉了,wallet会自动生成新的unused的地址 69 | 70 | ### 追踪入账: 71 | 1、交易列表可以根据时间断来查询,由于不支持通过block查询,所以可以用上一笔交易的时间作为查询的start 72 | ``` 73 | curl -X GET http://127.0.0.1:8090/v2/byron-wallets/{walletId}/transactions?start={起始查询时间} \ 74 | -H "Accept: application/json; charset=utf-8" \ 75 | -H "Content-Type: application/json; charset=utf-8" \ 76 | ``` 77 | 2、获取交易详细 78 | ``` 79 | curl -X GET http://127.0.0.1:8090/v2/byron-wallets/{walletId}/transactions/交易TxId \ 80 | -H "Accept: application/json; charset=utf-8" \ 81 | -H "Content-Type: application/json; charset=utf-8" \ 82 | ``` 83 | * 注意现在的交易单位是lovelace,`1 lovelace = 0.0000001 ada` 84 | * 注意验证交易的`status`为`in_ledger`,文档说`in_ledger`还可能rollback,保险起见注意实际入账需要延迟N个block 85 | * 注意如果input和output的地址都是本地的话会产生`status`是`wontApply`的交易 86 | 87 | ### 对外提币: 88 | ``` 89 | curl -X POST http://127.0.0.1:8090/v2/byron-wallets/{walletId}/transactions \ 90 | -H "Accept: application/json; charset=utf-8" \ 91 | -H "Content-Type: application/json; charset=utf-8" \ 92 | -d '{"payments":[{"address":"目标地址","amount":{"quantity":提币金额,"unit":"lovelace"}}],"passphrase":"支付密码"}' 93 | ``` 94 | 95 | ### 归集处理: 96 | * 无需归集 97 | 98 | ### 灾难恢复: 99 | * 新版改进后灾备简单了,先用12个助记词恢复wallet后直接用Import Address把所有地址都执行一遍即可。 100 | 101 | ### 注意事项: 102 | -------------------------------------------------------------------------------- /BCH - BitcoinCash.md: -------------------------------------------------------------------------------- 1 | # BitcoinCash - BCH 2 | 3 | ### 文档版本:0.21.1 4 | 检查日期: 2020.03.16 5 | 6 | ### 官网地址: 7 | https://bitcoincash.org/ 8 | 9 | ### 钱包下载: 10 | https://download.bitcoinabc.org/ 11 | 12 | ### 查询网站: 13 | https://bch.btc.com/ 14 | 15 | ### 开发文档 16 | * 同 BTC - Bitcoin 17 | 18 | ### 安装说明: 19 | * 同 BTC - Bitcoin 20 | 21 | ### 配置文件: 22 | * 同 BTC - Bitcoin 23 | 24 | ### 升级说明: 25 | * 同 BTC - Bitcoin 26 | 27 | ### 创建地址: 28 | * 同 BTC - Bitcoin 29 | 30 | ### 追踪入账: 31 | * 同 BTC - Bitcoin 32 | 33 | ### 对外提币: 34 | 1、估算当前费用 35 | ``` 36 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \ 37 | -d '{"jsonrpc":"1.0","id":"随便写","method":"estimatefee","params":[]}' 38 | ``` 39 | 2-4、同 BTC - Bitcoin 40 | 41 | ### 归集处理: 42 | * 同 BTC - Bitcoin 43 | 44 | ### 灾难恢复: 45 | * 同 BTC - Bitcoin 46 | 47 | ### 注意事项: 48 | -------------------------------------------------------------------------------- /BSV - BitcoinSV.md: -------------------------------------------------------------------------------- 1 | # BitcoinSV - BSV 2 | 3 | ### 文档版本:1.0.3 4 | 检查日期: 2020.05.10 5 | 6 | ### 官网地址: 7 | https://bitcoinsv.io/ 8 | 9 | ### 钱包下载: 10 | https://download.bitcoinsv.io/bitcoinsv/ 11 | 12 | ### 查询网站: 13 | https://bsv.btc.com/ 14 | 15 | ### 开发文档 16 | * 同 BTC - Bitcoin 17 | 18 | ### 安装说明: 19 | * 同 BTC - Bitcoin 20 | 21 | ### 配置文件: 22 | * 同 BTC - Bitcoin 23 | 24 | ### 升级说明: 25 | * 同 BTC - Bitcoin 26 | 27 | ### 创建地址: 28 | * 同 BTC - Bitcoin 29 | 30 | ### 追踪入账: 31 | * 同 BTC - Bitcoin 32 | 33 | ### 对外提币: 34 | 1、估算当前费用 35 | ``` 36 | estimatefee 接口已取消,官方文档说默认的fee是: 0.5sat/byte,根据这个计算预留的fee就行了。 37 | ``` 38 | 39 | 2、创建RAW交易 40 | ``` 41 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \ 42 | -d '{"jsonrpc":"1.0","id":"随便写","method":"createrawtransaction","params":[[{"txid":"输出的Txid","vout":输出的Tx的序号}],[{"接收地址":接收金额}]}' 43 | ``` 44 | 45 | 3、导入私钥(如果私钥已在节点上,可跳过) 46 | ``` 47 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \ 48 | -d '{"jsonrpc":"1.0","id":"随便写","method":"importprivkey","params":["私钥密文","标签(可留空)",false]}' 49 | ``` 50 | 51 | 4、签名RAW交易 52 | ``` 53 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \ 54 | -d '{"jsonrpc":"1.0","id":"随便写","method":"signrawtransaction","params":["创建RAW返回的Hex"]}' 55 | ``` 56 | 57 | 5、发送RAW交易 58 | ``` 59 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \ 60 | -d '{"jsonrpc":"1.0","id":"随便写","method":"sendrawtransaction","params":["完成签名的Hex"]}' 61 | ``` 62 | 63 | ### 归集处理: 64 | * 同 BTC - Bitcoin 65 | 66 | ### 灾难恢复: 67 | * 同 BTC - Bitcoin 68 | 69 | ### 注意事项: 70 | -------------------------------------------------------------------------------- /BTC - Bitcoin.md: -------------------------------------------------------------------------------- 1 | # Bitcoin - BTC 2 | 3 | ### 文档版本:0.19.1 4 | 检查日期: 2020.03.16 5 | 6 | ### 官网地址: 7 | https://bitcoin.org/ 8 | 9 | ### 钱包下载: 10 | https://bitcoincore.org/en/download/ 11 | 12 | ### 查询网站: 13 | https://btc.com/ 14 | 15 | ### 开发文档 16 | https://bitcoincore.org/en/doc/0.19.1/ 17 | 18 | ### 安装说明: 19 | 1、解压缩文件 20 | ``` 21 | tar -xvf bitcoin-0.19.1-x86_64-linux-gnu.tar.gz 22 | mv bitcoin-0.19.1-x86_64-linux-gnu bitcoin 23 | ``` 24 | 25 | 2、创建服务 26 | ``` 27 | vi /usr/lib/systemd/system/bitcoin.service 28 | ``` 29 | ``` 30 | [Unit] 31 | Description=Bitcoin 32 | 33 | [Service] 34 | Type=forking 35 | 36 | ExecStart=/安装目录/bin/bitcoind -daemon -conf=/数据目录/bitcoin.conf 37 | ExecStop=/安装目录/bin/bitcoin-cli -stop -conf=/数据目录/bitcoin.conf 38 | 39 | [Install] 40 | WantedBy=multi-user.target 41 | ``` 42 | 43 | ### 配置文件: 44 | ``` 45 | vi /数据目录/bitcoin.conf 46 | ``` 47 | ``` 48 | bind=127.0.0.1 #绑定端口,建议127.0.0.1 49 | server=1 50 | txindex=1 51 | datadir=/btc-data #数据存储目录 52 | 53 | rpcbind=127.0.0.1 #RPC端口,建议127.0.0.1 54 | rpcport=8332 55 | rpcuser= #RPC用户名 56 | rpcauth= #RPC认证信息 57 | rpcallowip= #允许访问的IP 58 | ``` 59 | 60 | ### 升级说明: 61 | 1、下载最新的版本 62 | 2、重命名旧版本的程序目录以做备份 63 | 3、解压缩新的压缩包并改名为bitcoin 64 | 4、重启服务 65 | ``` 66 | systemctl restart bitcoin 67 | ``` 68 | 5、观察debug.log是否正常 69 | ``` 70 | tail -f /数据目录/debug.log 71 | ``` 72 | 73 | ### 创建地址: 74 | 1、创建地址 75 | ``` 76 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \ 77 | -d '{"jsonrpc":"1.0","id":"随便写","method":"getnewaddress","params":[]}' 78 | ``` 79 | 2、获取私钥 80 | ``` 81 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \ 82 | -d '{"jsonrpc":"1.0","id":"随便写","method":"dumpprivkey","params":["Bitcoin地址"]}' 83 | ``` 84 | 85 | ### 追踪入账: 86 | 1、获取最新的区块高度 87 | ``` 88 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \ 89 | -d '{"jsonrpc":"1.0","id":"随便写","method":"getblockcount","params":[]}' 90 | ``` 91 | 2、根据区块高度获取区块Hash 92 | ``` 93 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \ 94 | -d '{"jsonrpc":"1.0","id":"随便写","method":"getblockhash","params":[区块高度]}' 95 | ``` 96 | 3、根据区块Hash获取交易列表 97 | ``` 98 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \ 99 | -d '{"jsonrpc":"1.0","id":"随便写","method":"getblock","params":["区块Hash"]}' 100 | ``` 101 | 4、根据TxId获取具体信息 102 | ``` 103 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \ 104 | -d '{"jsonrpc":"1.0","id":"随便写","method":"gettransaction","params":["交易TxId"]}' 105 | ``` 106 | 107 | ### 对外提币: 108 | 1、估算当前费用 109 | ``` 110 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \ 111 | -d '{"jsonrpc":"1.0","id":"随便写","method":"estimatesmartfee","params":[期望多少个区块内到达]}' 112 | ``` 113 | 114 | 2、创建RAW交易 115 | ``` 116 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \ 117 | -d '{"jsonrpc":"1.0","id":"随便写","method":"createrawtransaction","params":[[{"txid":"输出的Txid","vout":输出的Tx的序号}],[{"接收地址":接收金额}]}' 118 | ``` 119 | 120 | 3、签名RAW交易 121 | ``` 122 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \ 123 | -d '{"jsonrpc":"1.0","id":"随便写","method":"signrawtransactionwithkey","params":["创建RAW返回的Hex",["相关输出地址的私钥"]]}' 124 | ``` 125 | 126 | 4、发送RAW交易 127 | ``` 128 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \ 129 | -d '{"jsonrpc":"1.0","id":"随便写","method":"sendrawtransaction","params":["完成签名的Hex"]}' 130 | ``` 131 | 132 | ### 归集处理: 133 | * Bitcoin无需归集 134 | 135 | ### 灾难恢复: 136 | * 用户私钥加密后另外存储,以做备份,灾难发生时重建节点即可 137 | 138 | ### 注意事项: 139 | -------------------------------------------------------------------------------- /CMT - Cybermile.md: -------------------------------------------------------------------------------- 1 | # Cybermile - CMT 2 | 3 | ### 官网地址: 4 | https://www.cybermiles.io 5 | 6 | ### 钱包下载: 7 | https://github.com/CyberMiles/travis/releases 8 | 9 | ### 查询网站: 10 | https://www.cmttracking.io/ 11 | 12 | ### 开发文档 13 | https://travis.readthedocs.io/en/latest/connect-testnet.html 14 | 15 | ### 安装说明: 16 | * 同 ETH - Ethereum 17 | 18 | ### 配置文件: 19 | * 同 ETH - Ethereum 20 | 21 | ### 升级说明: 22 | * 同 ETH - Ethereum 23 | 24 | ### 创建地址: 25 | * 同 ETH - Ethereum 26 | 27 | ### 追踪入账: 28 | * 同 ETH - Ethereum 29 | 30 | ### 对外提币: 31 | * 同 ETH - Ethereum 32 | 33 | ### 归集处理: 34 | * 同 ETH - Ethereum 35 | 36 | ### 灾难恢复: 37 | * 同 ETH - Ethereum 38 | 39 | ### 注意事项: 40 | -------------------------------------------------------------------------------- /DASH - Dash.md: -------------------------------------------------------------------------------- 1 | # Dash - DASH 2 | 3 | ### 文档版本:0.15.0.0 4 | 检查日期: 2020.03.16 5 | 6 | ### 官网地址: 7 | https://www.dash.org/ 8 | 9 | ### 钱包下载: 10 | https://www.dash.org/downloads/ 11 | 12 | ### 查询网站: 13 | https://explorer.dash.org/chain/Dash 14 | 15 | ### 开发文档 16 | * 同 BTC - Bitcoin 17 | 18 | ### 安装说明: 19 | * 同 BTC - Bitcoin (文件名不同) 20 | 21 | ### 配置文件: 22 | * 同 BTC - Bitcoin 23 | 24 | ### 升级说明: 25 | * 同 BTC - Bitcoin 26 | 27 | ### 创建地址: 28 | * 同 BTC - Bitcoin 29 | 30 | ### 追踪入账: 31 | * 同 BTC - Bitcoin 32 | 33 | ### 对外提币: 34 | 1、估算当前费用 35 | ``` 36 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \ 37 | -d '{"jsonrpc":"1.0","id":"随便写","method":"estimatesmartfee","params":[期望多少个区块内到达]}' 38 | ``` 39 | 40 | 2、创建RAW交易 41 | ``` 42 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \ 43 | -d '{"jsonrpc":"1.0","id":"随便写","method":"createrawtransaction","params":[[{"txid":"输出的Txid","vout":输出的Tx的序号}],[{"接收地址":接收金额}]}' 44 | ``` 45 | 46 | 3、导入私钥(如果私钥已在节点上,可跳过) 47 | ``` 48 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \ 49 | -d '{"jsonrpc":"1.0","id":"随便写","method":"importprivkey","params":["私钥密文","标签(可留空)",false]}' 50 | ``` 51 | 52 | 4、签名RAW交易 53 | ``` 54 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \ 55 | -d '{"jsonrpc":"1.0","id":"随便写","method":"signrawtransaction","params":["创建RAW返回的Hex"]}' 56 | ``` 57 | 58 | 5、发送RAW交易 59 | ``` 60 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \ 61 | -d '{"jsonrpc":"1.0","id":"随便写","method":"sendrawtransaction","params":["完成签名的Hex"]}' 62 | ``` 63 | 64 | ### 归集处理: 65 | * 同 BTC - Bitcoin 66 | 67 | ### 灾难恢复: 68 | * 同 BTC - Bitcoin 69 | 70 | ### 注意事项: 71 | -------------------------------------------------------------------------------- /EOS - EOS.md: -------------------------------------------------------------------------------- 1 | # EOS - EOS 2 | 3 | ### 文档版本:2.0.4 4 | 检查日期: 2020.03.16 5 | 6 | ### 官网地址: 7 | https://eos.io/ 8 | 9 | ### 钱包下载: 10 | https://github.com/EOSIO/eos/releases 11 | 12 | ### 查询网站: 13 | https://eosx.io/ 14 | 15 | ### 开发文档 16 | https://developers.eos.io/ 17 | * 开发文档严重滞后、差评! 18 | 19 | ### 安装说明: 20 | 1、安装可参照此文档 21 | ``` 22 | https://developers.eos.io/eosio-home/docs/setting-up-your-environment 23 | ``` 24 | 25 | 2、启动节点 26 | ``` 27 | /usr/bin/nodeos --data-dir (数据目录) --config-dir (config.ini文件所在目录) --genesis-json (genesis.json文件路径) 28 | ``` 29 | 30 | 3、启动钱包 31 | ``` 32 | /usr/bin/keosd --data-dir (钱包文件目录) --config-dir (钱包config.infi目录) --unix-socket-path (sock文件路径) 33 | ``` 34 | * 可以使用 `screen` 或者 `supervisor` 来运行 35 | 36 | ### 快照启动 37 | 1、下载最新的快照 38 | ``` 39 | https://snapshots.eossweden.org/ 40 | ``` 41 | 2、解压缩快照到任意目录 42 | 3、首次执行以下命令启动 43 | ``` 44 | /usr/bin/nodeos --data-dir (数据目录) --config-dir (config.ini文件所在目录) --snapshot (解压缩后的bin文件的地址) 45 | ``` 46 | 4、以后可以用普通命令启动节点 47 | 48 | ### 升级说明: 49 | 1、停止节点和钱包服务 50 | 2、安装新的版本 51 | 3、重新开启节点和钱包服务 52 | 53 | ### 创建地址: 54 | 1、使用命令行创建一个钱包 55 | ``` 56 | cleos wallet create -n wallet-name --to-console 57 | ``` 58 | 2、使用命令行创建一个Key 59 | ``` 60 | cleos wallet create_key -n wallet-name 61 | ``` 62 | 3、使用 eosx.io 对Pubkey进行抵押操作 63 | ``` 64 | https://www.eosx.io/tools/account/create?by=other&enableTransfer=false&name=&publicKey= 65 | ``` 66 | 4、找一个交易所购买相应的EOS并提取到第3步所指定的地址 67 | 5、开通后可使用,交易所的用户的账号用分配memo编号的方式进行区分 68 | 69 | ### 追踪入账: 70 | 1、获取最新的区块高度 71 | ``` 72 | curl -X POST -H 'content-type: application/json' http://host:port/v1/chain/get_info 73 | ``` 74 | * 获取 `last_irreversible_block_num` 的不可逆的区块高度 75 | 2、根据区块Hash获取交易列表 76 | ``` 77 | curl -X POST -H 'content-type: application/json' http://host:port/v1/chain/get_block \ 78 | -d '{"block_num_or_id":区块高度}' 79 | ``` 80 | * `account` 为 `eosio.token` 的就是EOS的交易,`account` 字段是EOS Token的区分字段 81 | * `name` 为 `transfer` 的是转账的交易,其余的交易可忽略 82 | * `status` 为 `executed` 的是即时到账的交易,`delayed` 状态的存在隐患,交易所可弃用此状态的交易 83 | 84 | ### 对外提币: 85 | 1、获取最新的区块高度 86 | ``` 87 | curl -X POST -H 'content-type: application/json' http://host:port/v1/chain/get_info 88 | ``` 89 | * 获取 `last_irreversible_block_num` 的不可逆的区块高度 90 | 2、根据区块Hash获取交易列表 91 | ``` 92 | curl -X POST -H 'content-type: application/json' http://host:port/v1/chain/get_block \ 93 | -d '{"block_num_or_id":区块高度}' 94 | ``` 95 | * 获取 `ref_block_prefix` 字段 96 | * 获取 `timestamp` 字段,并加上20分钟作为发送时所使用的超时字段 97 | 3、调用 `abi_json_to_bin` 生成转账信息 98 | ``` 99 | curl -X POST -H 'content-type: application/json' http://host:port/v1/chain/abi_json_to_bin \ 100 | -d '{"code":"eosio.token","action":"transfer","args":{"from":"交易所钱包名称","to":"接收人钱包名称","quantity":数量,"memo":"备注信息"}}' 101 | ``` 102 | 4、解锁钱包 103 | ``` 104 | curl -X POST -H 'content-type: application/json' http://host:port/v1/wallet/unlock \ 105 | -d '["交易所钱包名称","解锁密码"]' 106 | ``` 107 | 5、对交易进行签名 108 | ``` 109 | curl -X POST -H 'content-type: application/json' http://host:port/v1/wallet/sign_transaction \ 110 | -d '[{"ref_block_num":"第1步取的区块高度","ref_block_prefix":"第2步取的ref_block_prefix","expiration":"第2步取的时间戳加20分钟","max_net_usage_words":0,"max_cpu_usage_ms":0,"delay_sec":0,"signatures":[],"actions":[{"account","eosio.token","name":"transfer","data":"第3步返回的Hex","authorization":[{"actor":"交易所钱包名称","permission":"active"}]}]},"交易所钱包公钥","aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906"]' 111 | ``` 112 | 6、向链上推送交易 113 | ``` 114 | curl -X POST -H 'content-type: application/json' http://host:port/v1/chain/push_transaction \ 115 | -d '{"compression":"none","transaction":{"ref_block_num":"第1步取的区块高度","ref_block_prefix":"第2步取的ref_block_prefix","expiration":"第2步取的时间戳加20分钟","max_net_usage_words":0,"max_cpu_usage_ms":0,"delay_sec":0,"signatures":[],"actions":[{"account","eosio.token","name":"transfer","data":"第3步返回的Hex","authorization":[{"actor":"交易所钱包名称","permission":"active","transaction_extensions":[],"context_free_actions":[]}]}]},"signatures":"第5步的签名"}' 116 | ``` 117 | 7、锁定钱包 118 | ``` 119 | curl -X POST -H 'content-type: application/json' http://host:port/v1/wallet/lock \ 120 | -d '["交易所钱包名称"]' 121 | ``` 122 | 123 | ### 归集处理: 124 | * 无需归集 125 | 126 | ### 灾难恢复: 127 | * 单一钱包的私钥保存好即可灾难恢复 128 | 129 | ### 注意事项: 130 | * 区块快照下载:https://eosnode.tools/blocks 131 | * 停止节点时必须正常停止、否贼需要hard-reply,速度非常慢 132 | 133 | ### 配置文件: 134 | ``` 135 | vi /数据目录/config.ini 136 | ``` 137 | ``` 138 | # the endpoint upon which to listen for incoming connections (eosio::bnet_plugin) 139 | # bnet-endpoint = 0.0.0.0:4321 140 | 141 | # this peer will request only irreversible blocks from other nodes (eosio::bnet_plugin) 142 | # bnet-follow-irreversible = 0 143 | 144 | # the number of threads to use to process network messages (eosio::bnet_plugin) 145 | # bnet-threads = 146 | 147 | # remote endpoint of other node to connect to; Use multiple bnet-connect options as needed to compose a network (eosio::bnet_plugin) 148 | # bnet-connect = 149 | 150 | # this peer will request no pending transactions from other nodes (eosio::bnet_plugin) 151 | # bnet-no-trx = false 152 | 153 | # The string used to format peers when logging messages about them. Variables are escaped with ${}. 154 | # Available Variables: 155 | # _name self-reported name 156 | # 157 | # _id self-reported ID (Public Key) 158 | # 159 | # _ip remote IP address of peer 160 | # 161 | # _port remote port number of peer 162 | # 163 | # _lip local IP address connected to peer 164 | # 165 | # _lport local port number connected to peer 166 | # 167 | # (eosio::bnet_plugin) 168 | # bnet-peer-log-format = ["${_name}" ${_ip}:${_port}] 169 | 170 | # the location of the blocks directory (absolute path or relative to application data dir) (eosio::chain_plugin) 171 | blocks-dir = "blocks" 172 | 173 | # Pairs of [BLOCK_NUM,BLOCK_ID] that should be enforced as checkpoints. (eosio::chain_plugin) 174 | # checkpoint = 175 | 176 | # Override default WASM runtime (eosio::chain_plugin) 177 | wasm-runtime = eos-vm-jit 178 | eos-vm-oc-enable = true 179 | 180 | # Override default maximum ABI serialization time allowed in ms (eosio::chain_plugin) 181 | abi-serializer-max-time-ms = 15000 182 | 183 | # Maximum size (in MiB) of the chain state database (eosio::chain_plugin) 184 | chain-state-db-size-mb = 200000 185 | 186 | # Safely shut down node when free space remaining in the chain state database drops below this size (in MiB). (eosio::chain_plugin) 187 | chain-state-db-guard-size-mb = 128 188 | 189 | # Maximum size (in MiB) of the reversible blocks database (eosio::chain_plugin) 190 | reversible-blocks-db-size-mb = 50000 191 | 192 | # Safely shut down node when free space remaining in the reverseible blocks database drops below this size (in MiB). (eosio::chain_plugin) 193 | reversible-blocks-db-guard-size-mb = 128 194 | 195 | # Number of worker threads in controller thread pool (eosio::chain_plugin) 196 | chain-threads = 20 197 | producer-threads = 20 198 | net-threads = 20 199 | http-threads = 20 200 | 201 | # print contract's output to console (eosio::chain_plugin) 202 | contracts-console = false 203 | 204 | # Account added to actor whitelist (may specify multiple times) (eosio::chain_plugin) 205 | # actor-whitelist = 206 | 207 | # Account added to actor blacklist (may specify multiple times) (eosio::chain_plugin) 208 | # actor-blacklist = 209 | 210 | # Contract account added to contract whitelist (may specify multiple times) (eosio::chain_plugin) 211 | # contract-whitelist = 212 | 213 | # Contract account added to contract blacklist (may specify multiple times) (eosio::chain_plugin) 214 | # contract-blacklist = 215 | 216 | # Action (in the form code::action) added to action blacklist (may specify multiple times) (eosio::chain_plugin) 217 | # action-blacklist = 218 | 219 | # Public key added to blacklist of keys that should not be included in authorities (may specify multiple times) (eosio::chain_plugin) 220 | # key-blacklist = 221 | 222 | # Deferred transactions sent by accounts in this list do not have any of the subjective whitelist/blacklist checks applied to them (may specify multiple times) (eosio::chain_plugin) 223 | # sender-bypass-whiteblacklist = 224 | 225 | # Database read mode ("speculative", "head", or "read-only"). 226 | # In "speculative" mode database contains changes done up to the head block plus changes made by transactions not yet included to the blockchain. 227 | # In "head" mode database contains changes done up to the current head block. 228 | # In "read-only" mode database contains incoming block changes but no speculative transaction processing. 229 | # (eosio::chain_plugin) 230 | read-mode = speculative 231 | 232 | # Chain validation mode ("full" or "light"). 233 | # In "full" mode all incoming blocks will be fully validated. 234 | # In "light" mode all incoming blocks headers will be fully validated; transactions in those validated blocks will be trusted 235 | # (eosio::chain_plugin) 236 | validation-mode = full 237 | 238 | # Disable the check which subjectively fails a transaction if a contract bills more RAM to another account within the context of a notification handler (i.e. when the receiver is not the code of the action). (eosio::chain_plugin) 239 | disable-ram-billing-notify-checks = false 240 | 241 | # Indicate a producer whose blocks headers signed by it will be fully validated, but transactions in those validated blocks will be trusted. (eosio::chain_plugin) 242 | # trusted-producer = 243 | 244 | # Track actions which match receiver:action:actor. Actor may be blank to include all. Action and Actor both blank allows all from Recieiver. Receiver may not be blank. (eosio::history_plugin) 245 | # filter-on = 246 | 247 | # Do not track actions which match receiver:action:actor. Action and Actor both blank excludes all from Reciever. Actor blank excludes all from reciever:action. Receiver may not be blank. (eosio::history_plugin) 248 | # filter-out = 249 | 250 | # PEM encoded trusted root certificate (or path to file containing one) used to validate any TLS connections made. (may specify multiple times) 251 | # (eosio::http_client_plugin) 252 | # https-client-root-cert = 253 | 254 | # true: validate that the peer certificates are valid and trusted, false: ignore cert errors (eosio::http_client_plugin) 255 | https-client-validate-peers = 1 256 | 257 | # The local IP and port to listen for incoming http connections; set blank to disable. (eosio::http_plugin) 258 | http-server-address = 127.0.0.1:8888 259 | 260 | # The local IP and port to listen for incoming https connections; leave blank to disable. (eosio::http_plugin) 261 | # https-server-address = 262 | 263 | # Filename with the certificate chain to present on https connections. PEM format. Required for https. (eosio::http_plugin) 264 | # https-certificate-chain-file = 265 | 266 | # Filename with https private key in PEM format. Required for https (eosio::http_plugin) 267 | # https-private-key-file = 268 | 269 | # Specify the Access-Control-Allow-Origin to be returned on each request. (eosio::http_plugin) 270 | # access-control-allow-origin = 271 | 272 | # Specify the Access-Control-Allow-Headers to be returned on each request. (eosio::http_plugin) 273 | # access-control-allow-headers = 274 | 275 | # Specify the Access-Control-Max-Age to be returned on each request. (eosio::http_plugin) 276 | # access-control-max-age = 277 | 278 | # Specify if Access-Control-Allow-Credentials: true should be returned on each request. (eosio::http_plugin) 279 | access-control-allow-credentials = false 280 | 281 | # The maximum body size in bytes allowed for incoming RPC requests (eosio::http_plugin) 282 | max-body-size = 1048576 283 | 284 | # Append the error log to HTTP responses (eosio::http_plugin) 285 | verbose-http-errors = false 286 | 287 | # If set to false, then any incoming "Host" header is considered valid (eosio::http_plugin) 288 | http-validate-host = false 289 | 290 | # Additionaly acceptable values for the "Host" header of incoming HTTP requests, can be specified multiple times. Includes http/s_server_address by default. (eosio::http_plugin) 291 | # http-alias = 292 | 293 | # The maximum number of pending login requests (eosio::login_plugin) 294 | max-login-requests = 1000000 295 | 296 | # The maximum timeout for pending login requests (in seconds) (eosio::login_plugin) 297 | max-login-timeout = 60 298 | 299 | # The target queue size between nodeos and MongoDB plugin thread. (eosio::mongo_db_plugin) 300 | mongodb-queue-size = 1024 301 | 302 | # The maximum size of the abi cache for serializing data. (eosio::mongo_db_plugin) 303 | mongodb-abi-cache-size = 2048 304 | 305 | # Required with --replay-blockchain, --hard-replay-blockchain, or --delete-all-blocks to wipe mongo db.This option required to prevent accidental wipe of mongo db. (eosio::mongo_db_plugin) 306 | mongodb-wipe = false 307 | 308 | # If specified then only abi data pushed to mongodb until specified block is reached. (eosio::mongo_db_plugin) 309 | mongodb-block-start = 0 310 | 311 | # MongoDB URI connection string, see: https://docs.mongodb.com/master/reference/connection-string/. If not specified then plugin is disabled. Default database 'EOS' is used if not specified in URI. Example: mongodb://127.0.0.1:27017/EOS (eosio::mongo_db_plugin) 312 | # mongodb-uri = 313 | 314 | # Update blocks/block_state with latest via block number so that duplicates are overwritten. (eosio::mongo_db_plugin) 315 | mongodb-update-via-block-num = 0 316 | 317 | # Enables storing blocks in mongodb. (eosio::mongo_db_plugin) 318 | mongodb-store-blocks = 1 319 | 320 | # Enables storing block state in mongodb. (eosio::mongo_db_plugin) 321 | mongodb-store-block-states = 1 322 | 323 | # Enables storing transactions in mongodb. (eosio::mongo_db_plugin) 324 | mongodb-store-transactions = 1 325 | 326 | # Enables storing transaction traces in mongodb. (eosio::mongo_db_plugin) 327 | mongodb-store-transaction-traces = 1 328 | 329 | # Enables storing action traces in mongodb. (eosio::mongo_db_plugin) 330 | mongodb-store-action-traces = 1 331 | 332 | # Track actions which match receiver:action:actor. Receiver, Action, & Actor may be blank to include all. i.e. eosio:: or :transfer: Use * or leave unspecified to include all. (eosio::mongo_db_plugin) 333 | # mongodb-filter-on = 334 | 335 | # Do not track actions which match receiver:action:actor. Receiver, Action, & Actor may be blank to exclude all. (eosio::mongo_db_plugin) 336 | # mongodb-filter-out = 337 | 338 | # The actual host:port used to listen for incoming p2p connections. (eosio::net_plugin) 339 | p2p-listen-endpoint = 0.0.0.0:9876 340 | 341 | # An externally accessible host:port for identifying this node. Defaults to p2p-listen-endpoint. (eosio::net_plugin) 342 | # p2p-server-address = 343 | 344 | # The public endpoint of a peer node to connect to. Use multiple p2p-peer-address options as needed to compose a network. (eosio::net_plugin) 345 | # p2p-peer-address = 346 | 347 | p2p-peer-address = seed.acroeos.one:9876 348 | 349 | # alohaeosprod: GB, London 350 | p2p-peer-address = peer.main.alohaeos.com:9876 351 | 352 | # argentinaeos: AR, eosargentina 353 | p2p-peer-address = p2p.eosargentina.io:5222 354 | 355 | # atticlabeosb: UA, Kyiv 356 | p2p-peer-address = eosbp-0.atticlab.net:9876 357 | 358 | # auroraeoscom: US, Virginia 359 | p2p-peer-address = mainnet.auroraeos.com:9870 360 | 361 | # aus1genereos: AU, Sydney 362 | p2p-peer-address = p2p.genereos.io:9876 363 | 364 | # bitfinexeos1: GB, London 365 | p2p-peer-address = eos-bp.bitfinex.com:9876 366 | 367 | # bitspacenode: GB, London 368 | p2p-peer-address = p2p.eos.bitspace.no:9876 369 | 370 | # blockchained: DE, EOSBLCKCHND 371 | p2p-peer-address = p2p-eos.blckchnd.com:19876 372 | 373 | # blockgenesys: GB, London 374 | p2p-peer-address = node1.blockgenesys.com:9876 375 | 376 | # blocksmithio: US, Oklahoma 377 | p2p-peer-address = anvil.eosblocksmith.io:9876 378 | 379 | # bp.bp: SG, BitPortal 380 | p2p-peer-address = 47.105.190.128:9376 381 | 382 | # chainriftxxx: SI, Ljubljana 383 | p2p-peer-address = eosboot.chainrift.com:9876 384 | 385 | # costaricaeos: CR, San Jose 386 | p2p-peer-address = p2p.eosio.cr:1976 387 | 388 | # cryptolions1: DE, Germany-Finland 389 | p2p-peer-address = bp.cryptolions.io:9876 390 | 391 | # cypherglasss: US, Minneapolis, MN 392 | p2p-peer-address = publicnode.cypherglass.com:9876 393 | 394 | # dutcheosxxxx: NL, Full, Naaldwijk 395 | p2p-peer-address = p2p.telos.dutcheos.io:9876 396 | 397 | # eos42freedom: GB, London 398 | p2p-peer-address = seed2.eos42.io:9876 399 | 400 | # eosarabianet: DE, Munich 401 | p2p-peer-address = mainnet.eosarabia.net:3571 402 | 403 | # eosasia11111: TW, Changhua 404 | p2p-peer-address = peering1.mainnet.eosasia.one:80 405 | 406 | # eosauthority: GB, London 407 | p2p-peer-address = node869-mainnet.eosauthority.com:9393 408 | 409 | # eosbarcelona: DE, Germany 410 | p2p-peer-address = mainnet.eosbcn.com:2095 411 | 412 | # eosbeaneosbp: US, Kansas 413 | p2p-peer-address = peer1.eosbean.com:9876 414 | 415 | # eosbeijingbp: JP, Tokyo 416 | p2p-peer-address = bp.eosbeijing.one:8080 417 | 418 | # eosbixinboot: CN, HongKong 419 | p2p-peer-address = mars.fnp2p.eosbixin.com:443 420 | 421 | # eoscafeblock: CA, Canada 422 | p2p-peer-address = mainnet.eoscalgary.io:5222 423 | 424 | # eoscanadacom: CA, Montreal, Canada 425 | p2p-peer-address = peering.mainnet.eoscanada.com:9876 426 | 427 | # eoscannonchn: HK, Hong Kong 428 | p2p-peer-address = node1.eoscannon.io:59876 429 | 430 | # eoscleanerbp: US, SV Node A-seed 431 | p2p-peer-address = seed.eoscleaner.com:19876 432 | 433 | # eosdacserver: KR, Seoul 434 | p2p-peer-address = ro1.eosdac.io:49876 435 | 436 | # eosdotwikibp: SG, Singapore 437 | p2p-peer-address = api.eos.wiki:39876 438 | 439 | # eosdublinwow: IE, Dublin 440 | p2p-peer-address = eos-seed.eosdublin.io:9876 441 | 442 | # eosecoeoseco: ??, Tokyo 443 | p2p-peer-address = mainnet.eoseco.com:10010 444 | 445 | # eoseouldotio: KR, EOSSeoul-seed1 446 | p2p-peer-address = p2p.eoseoul.io:9876 447 | 448 | # eosfengwocom: JP, Tokyo 449 | p2p-peer-address = peer.eosfengwo.com:8080 450 | 451 | # eosflareiobp: US, GlobalDAC 452 | p2p-peer-address = node.eosflare.io:1883 453 | 454 | # eosflytomars: JP, Tokyo 455 | p2p-peer-address = p2p.bitmars.one:8080 456 | 457 | # eosgenblockp: IS, Iceland 458 | p2p-peer-address = eos.genesis-mining.com:19876 459 | 460 | # eosgermanybp: DE, Falkenstein 461 | p2p-peer-address = p2p.mainnet.eos.eosgermany.online:9876 462 | 463 | # eoshuobipool: CN, HuobiNode1 464 | p2p-peer-address = peer1.eoshuobipool.com:18181 465 | 466 | # eoshuobipool: CN, HuobiNode2 467 | p2p-peer-address = peer2.eoshuobipool.com:18181 468 | 469 | # eosimperabpi: IT, Italy 470 | p2p-peer-address = api.eosimpera.com:9876 471 | 472 | # eosiodetroit: US, EOSDetroitNP1 473 | p2p-peer-address = p2p.eosdetroit.io:3018 474 | 475 | # eosiomeetone: CN, Taiwan 476 | p2p-peer-address = p2p.meet.one:9876 477 | 478 | # eosiosg11111: TW, Taiwan 479 | p2p-peer-address = peer.eosio.sg:80 480 | 481 | # eosisgravity: SG, Singapore 482 | p2p-peer-address = p2p-mainnet.eosgravity.com:8001 483 | 484 | # eoslaomaocom: US, NewYork 485 | p2p-peer-address = fullnode.eoslaomao.com:443 486 | 487 | # eoslaomaocom: US, NewYork 488 | p2p-peer-address = mainnet.eoslaomao.com:443 489 | 490 | # eosliquideos: IL, Israel - Center 491 | p2p-peer-address = node2.liquideos.com:9876 492 | 493 | # eosmatrixeos: IN, India 494 | p2p-peer-address = 35.200.134.56:9876 495 | 496 | # eosnationftw: CA, Toronto 497 | p2p-peer-address = peer.eosn.io:9876 498 | 499 | # eosnewyorkio: BR, primary 500 | p2p-peer-address = node1.eosnewyork.io:6987 501 | 502 | # eosninetiess: TW, Changhua 503 | p2p-peer-address = peering1.mainnet.eosasia.one:80 504 | 505 | # eosnodeonebp: KR, Seoul 506 | p2p-peer-address = 807534da.eosnodeone.io:19872 507 | 508 | # eosoceaniabp: NZ, Wellington, WLG 509 | p2p-peer-address = p2p.eosoceania.io:19876 510 | 511 | # eosonoeosono: JP, Tokyo 512 | p2p-peer-address = peer.ono.chat:9876 513 | 514 | # eospaceioeos: US, LosAngelesSeed1 515 | p2p-peer-address = p2p.mainnet.eospacex.com:88 516 | 517 | # eospacificbp: JP, Tokyo, Japan 518 | p2p-peer-address = eos.nodepacific.com:9876 519 | 520 | # eosphereiobp: AU, Sydney 521 | p2p-peer-address = peer1.eosphere.io:9876 522 | 523 | # eosplayworld: TW, Taiwan 524 | p2p-peer-address = 35.186.155.213:9876 525 | 526 | # eosriobrazil: BR, Rio de Janeiro 527 | p2p-peer-address = br.eosrio.io:9876 528 | 529 | # eossv12eossv: ??, Montreal 530 | p2p-peer-address = fn001.eossv.org:443 531 | 532 | # eosswedenorg: SE, Sweden 533 | p2p-peer-address = p2p.eossweden.se:9876 534 | 535 | # eostitanprod: CA, Toronto 536 | p2p-peer-address = boot.eostitan.com:9876 537 | 538 | # eostribeprod: US, Bluffdale,UT 539 | p2p-peer-address = api.eostribe.io:9115 540 | 541 | # eosukblocpro: DE, Falkenstein 542 | p2p-peer-address = api.eosuk.io:12000 543 | 544 | # eosvibesbloc: FR, Gravelines 545 | p2p-peer-address = node1.eosvibes.io:9876 546 | 547 | # eoswinwinwin: JP, Tokyo 548 | p2p-peer-address = peer.eoswin.info:9876 549 | 550 | # eosyskoreabp: KR, Seoul 551 | p2p-peer-address = pub0.eosys.io:6637 552 | 553 | # eosyskoreabp: KR, Seoul 554 | p2p-peer-address = pub1.eosys.io:6637 555 | 556 | # franceosysbp: GB, London 557 | p2p-peer-address = peer2.franceos.fr:19876 558 | 559 | # helloeoscnbp: JP, Tokyo 560 | p2p-peer-address = peer1.mainnet.helloeos.com.cn:80 561 | 562 | # itokenpocket: SG, TokenPocket 563 | p2p-peer-address = 47.105.190.128:9376 564 | 565 | # jedaaaaaaaaa: JP, Tokyo 566 | p2p-peer-address = m.jeda.one:3322 567 | 568 | # jrrcryptoeos: JP, eosjrr_tokyo 569 | p2p-peer-address = peer.eosjrr.io:9876 570 | 571 | # kunablockprd: UA, Ukraine 572 | p2p-peer-address = eosbp.kuna.io:9876 573 | 574 | # libertyblock: CA, Toronto, Canada 575 | p2p-peer-address = p2p.libertyblock.io:9800 576 | 577 | # moreisfuture: ??, Shenzhen 578 | p2p-peer-address = peering.mainnet.more.top:443 579 | 580 | # onechaindapp: ??, chongqing 581 | p2p-peer-address = eosdapp.oneeos.org:9000 582 | 583 | # oraclegogogo: SG, Singapore 584 | p2p-peer-address = peer.oraclechain.io:19876 585 | 586 | # privexinceos: ??, Falkenstein 587 | p2p-peer-address = eos-seed-de.privex.io:9876 588 | 589 | # sheos21sheos: IE, Dublin 590 | p2p-peer-address = p2p.sheos.org:5556 591 | 592 | # stakedstaked: US, Virginia 593 | p2p-peer-address = eos.staked.us:9870 594 | 595 | # starteosiobp: US, Ohio 596 | p2p-peer-address = node1.starteos.io:9876 597 | 598 | # superoneiobp: CN, Shenzhen, China 599 | p2p-peer-address = bp.superone.io:57576 600 | 601 | # switzerlanda: CH, Geneva 602 | p2p-peer-address = peer.eosgeneva.io:9876 603 | 604 | # teamgreymass: CA, YUL 605 | p2p-peer-address = seed.greymass.com:9876 606 | 607 | # unlimitedeos: JP, Tokyo 608 | p2p-peer-address = eos.unlimitedeos.com:15555 609 | 610 | # zbeosbp11111: ??, ZBnode1 611 | p2p-peer-address = node1.zbeos.com:9876 612 | 613 | # zbeosbp11111: ??, ZBnode2 614 | p2p-peer-address = node2.zbeos.com:9876 615 | 616 | # Maximum number of client nodes from any single IP address (eosio::net_plugin) 617 | p2p-max-nodes-per-host = 1 618 | 619 | # The name supplied to identify this node amongst the peers. (eosio::net_plugin) 620 | agent-name = "EOS Node" 621 | 622 | # Can be 'any' or 'producers' or 'specified' or 'none'. If 'specified', peer-key must be specified at least once. If only 'producers', peer-key is not required. 'producers' and 'specified' may be combined. (eosio::net_plugin) 623 | allowed-connection = any 624 | 625 | # Optional public key of peer allowed to connect. May be used multiple times. (eosio::net_plugin) 626 | # peer-key = 627 | 628 | # Tuple of [PublicKey, WIF private key] (may specify multiple times) (eosio::net_plugin) 629 | # peer-private-key = 630 | 631 | # Maximum number of clients from which connections are accepted, use 0 for no limit (eosio::net_plugin) 632 | max-clients = 25 633 | 634 | # number of seconds to wait before cleaning up dead connections (eosio::net_plugin) 635 | connection-cleanup-period = 30 636 | 637 | # max connection cleanup time per cleanup call in millisec (eosio::net_plugin) 638 | max-cleanup-time-msec = 10 639 | 640 | # True to require exact match of peer network version. (eosio::net_plugin) 641 | network-version-match = 0 642 | 643 | # number of blocks to retrieve in a chunk from any individual peer during synchronization (eosio::net_plugin) 644 | sync-fetch-span = 100 645 | 646 | # maximum sizes of transaction or block messages that are sent without first sending a notice (eosio::net_plugin) 647 | #max-implicit-request = 1500 648 | 649 | # Enable expirimental socket read watermark optimization (eosio::net_plugin) 650 | use-socket-read-watermark = 0 651 | 652 | # The string used to format peers when logging messages about them. Variables are escaped with ${}. 653 | # Available Variables: 654 | # _name self-reported name 655 | # 656 | # _id self-reported ID (64 hex characters) 657 | # 658 | # _sid first 8 characters of _peer.id 659 | # 660 | # _ip remote IP address of peer 661 | # 662 | # _port remote port number of peer 663 | # 664 | # _lip local IP address connected to peer 665 | # 666 | # _lport local port number connected to peer 667 | # 668 | # (eosio::net_plugin) 669 | peer-log-format = ["${_name}" ${_ip}:${_port}] 670 | 671 | # Enable block production, even if the chain is stale. (eosio::producer_plugin) 672 | enable-stale-production = false 673 | 674 | # Start this node in a state where production is paused (eosio::producer_plugin) 675 | pause-on-startup = false 676 | 677 | # Limits the maximum time (in milliseconds) that is allowed a pushed transaction's code to execute before being considered invalid (eosio::producer_plugin) 678 | max-transaction-time = 30 679 | 680 | # Limits the maximum age (in seconds) of the DPOS Irreversible Block for a chain this node will produce blocks on (use negative value to indicate unlimited) (eosio::producer_plugin) 681 | max-irreversible-block-age = -1 682 | 683 | # ID of producer controlled by this node (e.g. inita; may specify multiple times) (eosio::producer_plugin) 684 | producer-name = eosnode 685 | 686 | # (DEPRECATED - Use signature-provider instead) Tuple of [public key, WIF private key] (may specify multiple times) (eosio::producer_plugin) 687 | # private-key = 688 | 689 | # Key=Value pairs in the form = 690 | # Where: 691 | # is a string form of a vaild EOSIO public key 692 | # 693 | # is a string in the form : 694 | # 695 | # is KEY, or KEOSD 696 | # 697 | # KEY: is a string form of a valid EOSIO private key which maps to the provided public key 698 | # 699 | # KEOSD: is the URL where keosd is available and the approptiate wallet(s) are unlocked (eosio::producer_plugin) 700 | signature-provider = EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV=KEY:5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3 701 | 702 | # Limits the maximum time (in milliseconds) that is allowd for sending blocks to a keosd provider for signing (eosio::producer_plugin) 703 | keosd-provider-timeout = 5 704 | 705 | # account that can not access to extended CPU/NET virtual resources (eosio::producer_plugin) 706 | # greylist-account = 707 | 708 | # offset of non last block producing time in microseconds. Negative number results in blocks to go out sooner, and positive number results in blocks to go out later (eosio::producer_plugin) 709 | produce-time-offset-us = 0 710 | 711 | # offset of last block producing time in microseconds. Negative number results in blocks to go out sooner, and positive number results in blocks to go out later (eosio::producer_plugin) 712 | last-block-time-offset-us = 0 713 | 714 | # ratio between incoming transations and deferred transactions when both are exhausted (eosio::producer_plugin) 715 | incoming-defer-ratio = 1 716 | 717 | # the location of the snapshots directory (absolute path or relative to application data dir) (eosio::producer_plugin) 718 | snapshots-dir = "snapshots" 719 | 720 | # the location of the state-history directory (absolute path or relative to application data dir) (eosio::state_history_plugin) 721 | state-history-dir = "state-history" 722 | 723 | # enable trace history (eosio::state_history_plugin) 724 | trace-history = false 725 | 726 | # enable chain state history (eosio::state_history_plugin) 727 | chain-state-history = false 728 | 729 | # the endpoint upon which to listen for incoming connections (eosio::state_history_plugin) 730 | state-history-endpoint = 0.0.0.0:8080 731 | 732 | # Lag in number of blocks from the head block when selecting the reference block for transactions (-1 means Last Irreversible Block) (eosio::txn_test_gen_plugin) 733 | txn-reference-block-lag = 0 734 | 735 | # Plugin(s) to enable, may be specified multiple times 736 | # plugin = 737 | plugin = eosio::mongo_db_plugin 738 | #plugin = eosio::bnet_plugin 739 | plugin = eosio::net_plugin 740 | plugin = eosio::chain_plugin 741 | plugin = eosio::chain_api_plugin 742 | plugin = eosio::http_plugin 743 | plugin = eosio::net_api_plugin 744 | plugin = eosio::history_api_plugin 745 | ``` 746 | ``` 747 | vi /钱包目录/config.ini 748 | ``` 749 | ``` 750 | # The filename (relative to data-dir) to create a unix socket for HTTP RPC; set blank to disable. (eosio::http_plugin) 751 | unix-socket-path = 752 | 753 | # The local IP and port to listen for incoming http connections; leave blank to disable. (eosio::http_plugin) 754 | http-server-address = 127.0.0.1:8889 755 | 756 | # The local IP and port to listen for incoming https connections; leave blank to disable. (eosio::http_plugin) 757 | # https-server-address = 758 | 759 | # Filename with the certificate chain to present on https connections. PEM format. Required for https. (eosio::http_plugin) 760 | # https-certificate-chain-file = 761 | 762 | # Filename with https private key in PEM format. Required for https (eosio::http_plugin) 763 | # https-private-key-file = 764 | 765 | # Specify the Access-Control-Allow-Origin to be returned on each request. (eosio::http_plugin) 766 | # access-control-allow-origin = 767 | 768 | # Specify the Access-Control-Allow-Headers to be returned on each request. (eosio::http_plugin) 769 | # access-control-allow-headers = 770 | 771 | # Specify the Access-Control-Max-Age to be returned on each request. (eosio::http_plugin) 772 | # access-control-max-age = 773 | 774 | # Specify if Access-Control-Allow-Credentials: true should be returned on each request. (eosio::http_plugin) 775 | access-control-allow-credentials = false 776 | 777 | # The maximum body size in bytes allowed for incoming RPC requests (eosio::http_plugin) 778 | max-body-size = 1048576 779 | 780 | # Append the error log to HTTP responses (eosio::http_plugin) 781 | verbose-http-errors = false 782 | 783 | # If set to false, then any incoming "Host" header is considered valid (eosio::http_plugin) 784 | http-validate-host = false 785 | 786 | # Additionaly acceptable values for the "Host" header of incoming HTTP requests, can be specified multiple times. Includes http/s_server_address by default. (eosio::http_plugin) 787 | # http-alias = 788 | 789 | # The path of the wallet files (absolute path or relative to application data dir) (eosio::wallet_plugin) 790 | wallet-dir = "" 791 | 792 | # Timeout for unlocked wallet in seconds (default 900 (15 minutes)). Wallets will automatically lock after specified number of seconds of inactivity. Activity is defined as any wallet command e.g. list-wallets. (eosio::wallet_plugin) 793 | unlock-timeout = 900 794 | 795 | # Override default URL of http://localhost:12345 for connecting to yubihsm-connector (eosio::wallet_plugin) 796 | # yubihsm-url = 797 | 798 | # Enables YubiHSM support using given Authkey (eosio::wallet_plugin) 799 | # yubihsm-authkey = 800 | 801 | # Plugin(s) to enable, may be specified multiple times 802 | # plugin = 803 | ``` 804 | -------------------------------------------------------------------------------- /ERC20 - Ethereum ERC20 Token.md: -------------------------------------------------------------------------------- 1 | # Ethereum ERC20 Token - ERC20 2 | 3 | ### 文档版本:1.9.15 4 | 检查日期: 2020.06.21 5 | 6 | ### 官网地址: 7 | https://www.ethereum.org/ 8 | 9 | ### 钱包下载: 10 | https://geth.ethereum.org/downloads 11 | 12 | ### 查询网站: 13 | https://etherscan.io/ 14 | 15 | ### 开发文档 16 | https://github.com/ethereum/go-ethereum/wiki 17 | 18 | ### 安装说明: 19 | * 同 ETH - Ethereum 20 | 21 | ### 配置文件: 22 | * 同 ETH - Ethereum 23 | 24 | ### 升级说明: 25 | * 同 ETH - Ethereum 26 | 27 | ### 创建地址: 28 | * 同 ETH - Ethereum 29 | 30 | ### 追踪入账: 31 | 1、获取最新的区块高度 32 | ``` 33 | curl -X POST -H 'content-type:application/json' http://127.0.0.1:8333/ \ 34 | -d '{"jsonrpc":"2.0","id":"随便写","method":"eth_blockNumber","params":[]}' 35 | ``` 36 | 2、根据区块Hash获取交易列表 37 | ``` 38 | curl -X POST -H 'content-type:application/json' http://127.0.0.1:8333/ \ 39 | -d '{"jsonrpc":"2.0","id":"随便写","method":"eth_getBlockByNumber","params":["0x区块高度数字的HEX"]}' 40 | ``` 41 | 4、根据TxId获取具体信息 42 | ``` 43 | curl -X POST -H 'content-type:application/json' http://127.0.0.1:8333/ \ 44 | -d '{"jsonrpc":"2.0","id":"随便写","method":"eth_getTransactionByHash","params":["交易TxId"]}' 45 | ``` 46 | 5、根据TxId获取具体收据 47 | ``` 48 | curl -X POST -H 'content-type:application/json' http://127.0.0.1:8333/ \ 49 | -d '{"jsonrpc":"2.0","id":"随便写","method":"eth_getTransactionReceipt","params":["交易TxId"]}' 50 | 51 | * 验证收据的 `result/status` 的值为 0x1,交易成功的标志 52 | ``` 53 | 3、辨别TOKEN的交易 54 | ``` 55 | a、核对transaction中的to的合约地址是否是本地的Token 56 | b、获取transactions中的input的Hex,取其中的前5个byte匹配合约类型`Transfer`,其他类型如下 57 | TotalSupply : 0x18160ddd 58 | BalanceOf : 0x70a08231 59 | Transfer : 0xa9059cbb 60 | TransferFrom : 0x23b872dd 61 | Approve : 0x095ea7b3 62 | Allowance : 0xdd62ed3e 63 | c、取Hex的第6字节开始的32个字节,然后取此32个字节中的后20个字节为首款地址 64 | d、取Hex的第75个字节开始的64个字节,转换成数字后是转账金额,注意需要根据合约的小数点位进行换算 65 | ``` 66 | 67 | ### 对外提币: 68 | 1、ERC20同样适用ETH的eth_sendTransaction方法提交 69 | 2、`to`的值填入Token的合约地址 70 | 3、`value`的值填入`0x0` 71 | 4、`data`格式如下: 72 | ``` 73 | 0xa9059cbb + 收款地址填充到32字节(前方填充0x0) + 转账数量(数量先乘以 10^小数位数 ,然后转换成16进制) 74 | ``` 75 | 76 | ### 归集处理: 77 | 1、首先需要往用户的收款地址打入一小币Gas的ETH作为归集的费用 78 | 2、将Token转账到归集地址 79 | 80 | * 以下提供一个批量对用户地址进行充值Gas的合约代码 81 | ``` 82 | pragma solidity ^0.4.0; 83 | 84 | contract MultiSend{ 85 | function Send2Many(address[] _to, uint256[] _value) public payable returns (bool _success) { 86 | assert(_to.length == _value.length); 87 | assert(_to.length <= 255); 88 | uint256 beforeValue = msg.value; 89 | uint256 afterValue = 0; 90 | for (uint8 i = 0; i < _to.length; i++) { 91 | afterValue = afterValue + _value[i]; 92 | assert(_to[i].send(_value[i])); 93 | } 94 | uint256 remainingValue = beforeValue - afterValue; 95 | if (remainingValue > 0) { 96 | assert(msg.sender.send(remainingValue)); 97 | } 98 | return true; 99 | } 100 | } 101 | ``` 102 | 103 | ### 灾难恢复: 104 | * 同 ETH - Ethereum 105 | 106 | ### 注意事项: 107 | -------------------------------------------------------------------------------- /ETH - Ethereum.md: -------------------------------------------------------------------------------- 1 | # Ethereum - ETH 2 | 3 | ### 文档版本:1.9.15 4 | 检查日期: 2020.06.21 5 | 6 | ### 官网地址: 7 | https://www.ethereum.org/ 8 | 9 | ### 钱包下载: 10 | https://geth.ethereum.org/downloads 11 | 12 | ### 查询网站: 13 | https://etherscan.io/ 14 | 15 | ### 开发文档 16 | https://github.com/ethereum/go-ethereum/wiki 17 | 18 | ### 安装说明: 19 | 1、解压缩文件 20 | ``` 21 | tar -xvf geth-alltools-linux-amd64-1.8.23-c9427004.tar.gz --warning=no-timestamp 22 | ``` 23 | 24 | 2、启动节点 25 | ``` 26 | /data/eth/geth --maxpeers 100 --rpc --rpcaddr "127.0.0.1" --rpcport 8333 --nat=none --rpcapi db,eth,net,web3,personal --datadir "/data/eth-data" 27 | 28 | * 第一次启动增加 --syncmode "fast" 来加快同步速度 29 | ``` 30 | 31 | ### 配置文件: 32 | * 配置都在启动参数内 33 | 34 | ### 升级说明: 35 | 1、下载新版本 36 | 2、备份旧版本程序 37 | 3、更换程序文件 38 | 4、重启服务 39 | 40 | ### 创建地址: 41 | 1、创建地址 42 | ``` 43 | curl -X POST -H 'content-type:application/json' http://127.0.0.1:8333/ \ 44 | -d '{"jsonrpc":"2.0","id":"随便写","method":"personal_newAccount","params":[]}' 45 | ``` 46 | 2、备份 `/数据目录/keystore/` 目录下的keystore文件 47 | 48 | ### 追踪入账: 49 | 1、获取最新的区块高度 50 | ``` 51 | curl -X POST -H 'content-type:application/json' http://127.0.0.1:8333/ \ 52 | -d '{"jsonrpc":"2.0","id":"随便写","method":"eth_blockNumber","params":[]}' 53 | ``` 54 | 2、根据区块Hash获取交易列表 55 | ``` 56 | curl -X POST -H 'content-type:application/json' http://127.0.0.1:8333/ \ 57 | -d '{"jsonrpc":"2.0","id":"随便写","method":"eth_getBlockByNumber","params":["0x区块高度数字的HEX"]}' 58 | ``` 59 | 3、根据TxId获取具体信息 60 | ``` 61 | curl -X POST -H 'content-type:application/json' http://127.0.0.1:8333/ \ 62 | -d '{"jsonrpc":"2.0","id":"随便写","method":"eth_getTransactionByHash","params":["交易TxId"]}' 63 | ``` 64 | 4、根据TxId获取具体收据 65 | ``` 66 | curl -X POST -H 'content-type:application/json' http://127.0.0.1:8333/ \ 67 | -d '{"jsonrpc":"2.0","id":"随便写","method":"eth_getTransactionReceipt","params":["交易TxId"]}' 68 | 69 | * 验证收据的 `result/status` 的值为 0x1,交易成功的标志 70 | ``` 71 | 72 | ### 对外提币: 73 | 1、解锁账户 74 | ``` 75 | curl -X POST -H 'content-type:application/json' http://127.0.0.1:8333/ \ 76 | -d '{"jsonrpc":"2.0","id":"随便写","method":"personal_unlockAccount","params":["交易TxId"]}' 77 | ``` 78 | 79 | 2、获得Gas单价 80 | ``` 81 | curl -X POST -H 'content-type:application/json' http://127.0.0.1:8333/ \ 82 | -d '{"jsonrpc":"2.0","id":"随便写","method":"eth_gasPrice","params":[]}' 83 | ``` 84 | 85 | 3、估算Gas数量 86 | ``` 87 | curl -X POST -H 'content-type:application/json' http://127.0.0.1:8333/ \ 88 | -d '{"jsonrpc":"2.0","id":"随便写","method":"eth_estimateGas","params":[{"from":"本地归集地址","to":"接收地址","value":"0x交易金额的Hex"}]}' 89 | ``` 90 | 91 | 4、发送RAW交易 92 | ``` 93 | curl -X POST -H 'content-type:application/json' http://127.0.0.1:8333/ \ 94 | -d '{"jsonrpc":"2.0","id":"随便写","method":"eth_sendTransaction","params":[{"from":"本地归集地址","to":"接收地址","value":"0x交易金额的Hex","gas":"Gas数量","gasPrice":"Gas单价"}]}' 95 | ``` 96 | 97 | ### 归集处理: 98 | * ETH是1对1的交易,所以交易所需要归集 99 | 100 | ### 灾难恢复: 101 | * 备份 `/数据目录/keystore` 下的文件和相应地址的账户密码 102 | 103 | ### 注意事项: 104 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | This is free and unencumbered software released into the public domain. 2 | 3 | Anyone is free to copy, modify, publish, use, compile, sell, or 4 | distribute this software, either in source code form or as a compiled 5 | binary, for any purpose, commercial or non-commercial, and by any 6 | means. 7 | 8 | In jurisdictions that recognize copyright laws, the author or authors 9 | of this software dedicate any and all copyright interest in the 10 | software to the public domain. We make this dedication for the benefit 11 | of the public at large and to the detriment of our heirs and 12 | successors. We intend this dedication to be an overt act of 13 | relinquishment in perpetuity of all present and future rights to this 14 | software under copyright law. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | 24 | For more information, please refer to 25 | -------------------------------------------------------------------------------- /LSK - Lisk.md: -------------------------------------------------------------------------------- 1 | # Lisk - LSK 2 | 3 | ### 文档版本:2.1.4 / commander 2.2.3 4 | 检查日期: 2020.03.16 5 | 6 | ### 官网地址: 7 | https://lisk.io 8 | 9 | ### 钱包下载: 10 | https://lisk.io/documentation/lisk-core/setup 11 | 12 | ### 查询网站: 13 | https://explorer.lisk.io 14 | 15 | ### 开发文档 16 | https://lisk.io/documentation/lisk-core/user-guide/api 17 | 18 | ### 安装说明:` 19 | 1、首先安装`lisk-core` 20 | ``` 21 | https://lisk.io/documentation/lisk-core/setup 22 | ``` 23 | 2、还需要安装`lisk-commander` 24 | ``` 25 | https://lisk.io/documentation/lisk-commander/setup 26 | ``` 27 | 28 | ### 配置文件: 29 | https://lisk.io/documentation/lisk-core/user-guide/configuration 30 | 31 | ### 升级说明: 32 | https://lisk.io/documentation/lisk-core/upgrade 33 | 34 | ### 创建地址: 35 | 没找到创建地址的API,所以只能通过console来创建 36 | ``` 37 | lisk account:create 38 | ``` 39 | 40 | ### 追踪入账: 41 | 1、获取最新的区块高度 42 | ``` 43 | curl -X GET -H 'content-type: application/json' http://127.0.0.1:8000/api/node/status \ 44 | ``` 45 | 2、根据区块高度获取叫一列表 46 | ``` 47 | curl -X GET -H 'content-type: application/json' http://127.0.0.1:8000/api/transactions?height=高度&limit=单页最大条数 48 | ``` 49 | 3、根据TxId获取具体信息 50 | ``` 51 | curl -X GET -H 'content-type: application/json' http://127.0.0.1:8000/api/transactions?id=交易TxId 52 | ``` 53 | 54 | ### 对外提币: 55 | 在API里没有Account相关的一切操作,所以打币只能通过控制台进行 56 | 1、创建交易 57 | ``` 58 | lisk transaction:create:transfer 数量 接收方地址 --passphrase="pass:发送地址的助记词" 59 | ``` 60 | 2、广播交易 61 | ``` 62 | lisk transaction:broadcast 第1步的输出结果 63 | ``` 64 | 65 | ### 归集处理: 66 | * Lisk的交易是1对1的所以需要归集,归集与对外打币一样提到一个归集地址即可 67 | 68 | ### 灾难恢复: 69 | * 每个账号创建时都有私钥和助记词,保存好这些即可 70 | 71 | ### 注意事项: 72 | -------------------------------------------------------------------------------- /LTC - Litecoin.md: -------------------------------------------------------------------------------- 1 | # Litecoin - LTC 2 | 3 | ### 文档版本:0.17.1 4 | 检查日期: 2020.03.16 5 | 6 | ### 官网地址: 7 | https://litecoin.org 8 | 9 | ### 钱包下载: 10 | * 同官网 11 | 12 | ### 查询网站: 13 | http://explorer.litecoin.net/chain/Litecoin 14 | 15 | ### 开发文档 16 | * 同 BTC - Bitcoin 17 | 18 | ### 安装说明: 19 | * 同 BTC - Bitcoin (文件名不同) 20 | 21 | ### 配置文件: 22 | * 同 BTC - Bitcoin 23 | 24 | ### 升级说明: 25 | * 同 BTC - Bitcoin 26 | 27 | ### 创建地址: 28 | * 同 BTC - Bitcoin 29 | 30 | ### 追踪入账: 31 | * 同 BTC - Bitcoin 32 | 33 | ### 对外提币: 34 | * 同 BTC - Bitcoin 35 | 36 | ### 归集处理: 37 | * 同 BTC - Bitcoin 38 | 39 | ### 灾难恢复: 40 | * 同 BTC - Bitcoin 41 | 42 | ### 注意事项: 43 | -------------------------------------------------------------------------------- /MERCI - MERCI.md: -------------------------------------------------------------------------------- 1 | # MERCI - MERCI 2 | 3 | ### 文档版本:0.16.1 4 | 检查日期: 2019.11.04 5 | 6 | ### 官网地址: 7 | https://mercibq.com/ 8 | 9 | ### 钱包下载: 10 | https://github.com/merciproject/merci 11 | 12 | ### 查询网站: 13 | https://info.mercibq.com/ 14 | 15 | ### 开发文档 16 | https://github.com/merciproject/merci 17 | 18 | ### 安装说明: 19 | 需要从原代码编译,步骤可看Github的README 20 | ``` 21 | https://github.com/merciproject/merci 22 | ``` 23 | 24 | ### 配置文件: 25 | ``` 26 | stacking=0 # 交易所需要关闭这个,会自动产生挖矿交易,可能导致重复入账 27 | ``` 28 | * 其它的同 BTC - Bitcoin 29 | 30 | ### 升级说明: 31 | * 同 BTC - Bitcoin 32 | 33 | ### 创建地址: 34 | * 同 BTC - Bitcoin 35 | 36 | ### 追踪入账: 37 | * 同 BTC - Bitcoin 38 | 39 | ### 对外提币: 40 | * 同 BTC - Bitcoin 41 | 42 | ### 归集处理: 43 | * 同 BTC - Bitcoin 44 | 45 | ### 灾难恢复: 46 | * 同 BTC - Bitcoin 47 | 48 | ### 注意事项: 49 | -------------------------------------------------------------------------------- /MONA - Monacoin.md: -------------------------------------------------------------------------------- 1 | # Monacoin - MONA 2 | 3 | ### 文档版本:0.17.1 4 | 检查日期: 2020.03.16 5 | 6 | ### 官网地址: 7 | https://monacoin.org/ 8 | 9 | ### 钱包下载: 10 | * 同官网 11 | 12 | ### 查询网站: 13 | https://mona.chainseeker.info/ 14 | 15 | ### 开发文档 16 | * 同 BTC - Bitcoin 17 | 18 | ### 安装说明: 19 | * 同 BTC - Bitcoin (文件名不同) 20 | 21 | ### 配置文件: 22 | * 同 BTC - Bitcoin 23 | 24 | ### 升级说明: 25 | * 同 BTC - Bitcoin 26 | 27 | ### 创建地址: 28 | * 同 BTC - Bitcoin 29 | 30 | ### 追踪入账: 31 | * 同 BTC - Bitcoin 32 | 33 | ### 对外提币: 34 | * 同 BTC - Bitcoin 35 | 36 | ### 归集处理: 37 | * 同 BTC - Bitcoin 38 | 39 | ### 灾难恢复: 40 | * 同 BTC - Bitcoin 41 | 42 | ### 注意事项: 43 | -------------------------------------------------------------------------------- /NEO - NEO.md: -------------------------------------------------------------------------------- 1 | # NEO - NEO 2 | 3 | ### 文档版本:2.10.3 4 | 检查日期: 2020.03.16 5 | 6 | ### 官网地址: 7 | https://neo.org/ 8 | 9 | ### 钱包下载: 10 | https://github.com/neo-project/neo-cli/releases 11 | 12 | ### 查询网站: 13 | https://neotracker.io/ 14 | 15 | ### 开发文档 16 | https://docs.neo.org/ 17 | 18 | ### 安装说明: 19 | 1、解压缩文件 20 | ``` 21 | unzip neo-cli-linux-x64.zip 22 | mv neo-cli-linux-x64 neo 23 | ``` 24 | 25 | 2、启动节点 26 | ``` 27 | dotnet neo-cli.dll --rpc --log 28 | ``` 29 | * 建议使用 screen 来运行,因为neo-cli是可以做一些交互查询的 30 | * --rpc 是开启rpc端口的参数 31 | * --log 是开启ApplicationLog插件的参数,此参数是NEP5 Token必须的 32 | 33 | ### 配置文件: 34 | ``` 35 | vi /程序目录/config.json 36 | ``` 37 | ``` 38 | { 39 | "ApplicationConfiguration": { 40 | "Paths": { 41 | "Chain": "/数据目录/Chain_{0}", 42 | "Index": "/数据目录/Index_{0}", 43 | "ApplicationLogs": "/数据目录/ApplicationLogs_{0}" 44 | }, 45 | "P2P": { 46 | "Port": 10333, 47 | "WsPort": 10334 48 | }, 49 | "RPC": { 50 | "BindAddress": "127.0.0.1", 51 | "Port": 10332, 52 | "SslCert": "", 53 | "SslCertPassword": "" 54 | }, 55 | "UnlockWallet": { 56 | "Path": "/钱包目录/钱包.json", 57 | "Password": "钱包密码", 58 | "StartConsensus": false, 59 | "IsActive": true 60 | }, 61 | "PluginURL": "https://github.com/neo-project/neo-plugins/releases/download/v{1}/{0}.zip" 62 | } 63 | } 64 | ``` 65 | ``` 66 | vi /程序目录/Plugins/ApplicationLogs/config.json 67 | ``` 68 | ``` 69 | { 70 | "PluginConfiguration": { 71 | "Path": "/数据目录/ApplicationLogs_{0}" 72 | } 73 | } 74 | ``` 75 | 76 | ### 升级说明: 77 | 1、下载最新的版本 78 | 2、重命名旧版本的程序目录以做备份 79 | 3、解压缩新的压缩包并改名为neo 80 | 4、复制config.json文件、Plugins目录至新版neo程序目录 81 | 5、重启节点程序 82 | 83 | ### 创建地址: 84 | 1、创建地址 85 | ``` 86 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:10332/ \ 87 | -d '{"jsonrpc":"2.0","id":"随便写","method":"getnewaddress","params":[]}' 88 | ``` 89 | 2、获取私钥 90 | ``` 91 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:10332/ \ 92 | -d '{"jsonrpc":"2.0","id":"随便写","method":"dumpprivkey","params":["地址"]}' 93 | ``` 94 | 95 | ### 追踪入账: 96 | 1、获取最新的区块高度 97 | ``` 98 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:10332/ \ 99 | -d '{"jsonrpc":"2.0","id":"随便写","method":"getblockcount","params":[]}' 100 | ``` 101 | 2、根据区块Hash获取交易列表 102 | ``` 103 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:10332/ \ 104 | -d '{"jsonrpc":"2.0","id":"随便写","method":"getblock","params":[区块高度,1]}' 105 | ``` 106 | 3、根据TxId获取具体信息 107 | ``` 108 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:10332/ \ 109 | -d '{"jsonrpc":"2.0","id":"随便写","method":"getrawtransaction","params":["交易TxId",1]}' 110 | ``` 111 | * 入账需验证Asset字段 112 | * NEO:c56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b 113 | * GAS:602c79718b16e442de58778e148d0b1084e3b2dffd5de6b7b16cee7969282de7 114 | 115 | ### 对外提币: 116 | ``` 117 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:10332/ \ 118 | -d '{"jsonrpc":"2.0","id":"随便写","method":"sendmany","params":[{"asset":"币种Hex","value":提币金额,"address":"收款地址"},0,"找零地址"]}' 119 | ``` 120 | * 由于NEO不提供RAW相关的接口(只有sendraw,没有create和sign)只能使用此方法进行 121 | * 带来的问题是如果节点发生灾难必须花时间将所有私钥导回节点 122 | * 同时从安全性上来说私钥无法独立保存,也会降低安全性 123 | * 这里给个差评 124 | 125 | ### 归集处理: 126 | * 无需归集 127 | 128 | ### 灾难恢复: 129 | * 用户私钥加密后另外存储,以做备份,灾难发生时重建节点即可 130 | 131 | ### 注意事项: 132 | -------------------------------------------------------------------------------- /NEP- NEO NEP5 Token.md: -------------------------------------------------------------------------------- 1 | # NEP5 - NEO NEP5 Token 2 | 3 | ### 文档版本:2.10.3 4 | 检查日期: 2020.03.16 5 | 6 | ### 官网地址: 7 | https://neo.org/ 8 | 9 | ### 钱包下载: 10 | https://github.com/neo-project/neo-cli/releases 11 | 12 | ### 查询网站: 13 | https://neotracker.io/ 14 | 15 | ### 开发文档 16 | https://docs.neo.org/ 17 | 18 | ### 安装说明: 19 | * 同 NEO - NEO 20 | 21 | ### 配置文件: 22 | * 同 NEO - NEO 23 | 24 | ### 升级说明: 25 | * 同 NEO - NEO 26 | 27 | ### 创建地址: 28 | * 同 NEO - NEO 29 | 30 | ### 追踪入账: 31 | 1、获取最新的区块高度 32 | ``` 33 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:10332/ \ 34 | -d '{"jsonrpc":"2.0","id":"随便写","method":"getblockcount","params":[]}' 35 | ``` 36 | 2、根据区块Hash获取交易列表 37 | ``` 38 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:10332/ \ 39 | -d '{"jsonrpc":"2.0","id":"随便写","method":"getblock","params":[区块高度,1]}' 40 | ``` 41 | 3、根据TxId获取具体信息 42 | ``` 43 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:10332/ \ 44 | -d '{"jsonrpc":"2.0","id":"随便写","method":"getapplicationlog","params":["交易TxId"]}' 45 | ``` 46 | * 第2步中`type=InvocationTransaction`的交易在第3部中取详细信息 47 | * 第3步中注意验证`vmstate`字段的状态,防止错误入账 48 | 49 | ### 对外提币: 50 | * 同 NEO - NEO 51 | 52 | ### 归集处理: 53 | * 无需归集 54 | 55 | ### 灾难恢复: 56 | * 同 NEO - NEO 57 | 58 | ### 注意事项: 59 | -------------------------------------------------------------------------------- /OMNI - OmniLayer.md: -------------------------------------------------------------------------------- 1 | # OmniLayer - OMNI 2 | 3 | ### 文档版本:0.8.0 4 | 检查日期: 2020.03.16 5 | 6 | ### 官网地址: 7 | http://www.omnilayer.org/ 8 | 9 | ### 钱包下载: 10 | https://github.com/OmniLayer/omnicore/releases 11 | 12 | ### 查询网站: 13 | https://www.omniexplorer.info 14 | 15 | ### 开发文档 16 | https://github.com/OmniLayer/omnicore/wiki 17 | 18 | ### 安装说明: 19 | * 同 BTC - Bitcoin (文件名不同) 20 | 21 | ### 配置文件: 22 | * 同 BTC - Bitcoin 23 | 24 | ### 升级说明: 25 | * 同 BTC - Bitcoin 26 | 27 | ### 创建地址: 28 | * 同 BTC - Bitcoin 29 | 30 | ### 追踪入账: 31 | 1、获取最新的区块高度 32 | ``` 33 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \ 34 | -d '{"jsonrpc":"1.0","id":"随便写","method":"getblockcount","params":[]}' 35 | ``` 36 | 2、获取区块内OMNI的交易列表 37 | ``` 38 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \ 39 | -d '{"jsonrpc":"1.0","id":"随便写","method":"omni_listblocktransactions","params":[区块高度]}' 40 | ``` 41 | 3、根据TxId获取具体信息 42 | ``` 43 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \ 44 | -d '{"jsonrpc":"1.0","id":"随便写","method":"omni_gettransaction","params":["交易TxId"]}' 45 | ``` 46 | * 注意需要验证valid字段是否为true。 47 | * 追踪OMNI入账的同时需要追踪BTC的入账,以备对外提币是使用 48 | 49 | ### 对外提币: 50 | 1、估算当前费用 51 | ``` 52 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \ 53 | -d '{"jsonrpc":"1.0","id":"随便写","method":"estimatesmartfee","params":[期望多少个区块内到达]}' 54 | ``` 55 | 56 | 2、创建Payload 57 | ``` 58 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \ 59 | -d '{"jsonrpc":"1.0","id":"随便写","method":"omni_createpayload_simplesend","params":["Token编号(USDT:31)",支出Token数量]}' 60 | ``` 61 | 62 | 3、创建RAW交易 63 | ``` 64 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \ 65 | -d '{"jsonrpc":"1.0","id":"随便写","method":"createrawtransaction","params":[[{"txid":"输出的Txid","vout":输出的Tx的序号}],{}}' 66 | ``` 67 | 68 | 4、在RAW上加载支出数据 69 | ``` 70 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \ 71 | -d '{"jsonrpc":"1.0","id":"随便写","method":"omni_createrawtx_opreturn","params":["第3步的结果Hex","第2步的结果Hex"}' 72 | ``` 73 | 74 | 5、在RAW上添加接收者的信息 75 | ``` 76 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \ 77 | -d '{"jsonrpc":"1.0","id":"随便写","method":"omni_createrawtx_reference","params":["第4步的结果Hex","接收者的地址"]}' 78 | ``` 79 | 80 | 6、在RAW上添加手续费金额和支出BTC信息 81 | ``` 82 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \ 83 | -d '{"jsonrpc":"1.0","id":"随便写","method":"omni_createrawtx_change","params":["第5步的结果Hex",[{"txid":"输出的Txid","vout":输出的Tx的序号,"scriptPubKey":"输出的收款人公钥"}],"找零收款地址",交易手续费金额]}' 84 | ``` 85 | 86 | 7、导入私钥(如果私钥已在节点上,可跳过) 87 | ``` 88 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \ 89 | -d '{"jsonrpc":"1.0","id":"随便写","method":"importprivkey","params":["私钥密文","标签(可留空)",false]}' 90 | ``` 91 | 92 | 8、签名RAW交易 93 | ``` 94 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \ 95 | -d '{"jsonrpc":"1.0","id":"随便写","method":"signrawtransaction","params":["第6步的结果Hex"]}' 96 | ``` 97 | 98 | 9、发送RAW交易 99 | ``` 100 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \ 101 | -d '{"jsonrpc":"1.0","id":"随便写","method":"sendrawtransaction","params":["完成签名的Hex"]}' 102 | ``` 103 | 104 | ### 归集处理: 105 | * 由于OMNI是单对单的交易,所以交易所必须进行一次归集; 106 | * 归集的操作和对外提币的操作相同,提币至交易所的一个专用归集地址即可 107 | 108 | ### 灾难恢复: 109 | * 同 BTC - Bitcoin 110 | 111 | ### 从Segwit地址找回: 112 | https://github.com/OmniLayer/omniwallet/wiki/Recovering-funds-from-a-Segwit-Address 113 | 114 | ### 关于测试币 115 | 可以通过以下命令只做一个新的TOKEN然后挂在测试链上: 116 | ``` 117 | omnicore-cli omni_sendissuancefixed "本地地址" 2 2 0 "" "" "测试币代码" "" "" "数量" 118 | ``` 119 | 然后用以下命令来查看新的资产编号 120 | ``` 121 | omnicore-cli omni_getallbalancesforaddress "本地地址" 122 | ``` 123 | -------------------------------------------------------------------------------- /QTUM - Qtum.md: -------------------------------------------------------------------------------- 1 | # Qtum - QTUM 2 | 3 | ### 文档版本:0.19.1 4 | 检查日期: 2020.07.12 5 | 6 | ### 官网地址: 7 | https://qtum.org 8 | 9 | ### 钱包下载: 10 | https://qtumeco.io/wallet 11 | 12 | ### 查询网站: 13 | https://explorer.qtum.org 14 | 15 | ### 开发文档 16 | https://qtum.org/en/developer 17 | 18 | ### 安装说明: 19 | * 同 BTC - Bitcoin (文件名区别) 20 | 21 | ### 配置文件: 22 | ``` 23 | stacking=0 # 交易所需要关闭这个,会自动产生挖矿交易,可能导致重复入账 24 | ``` 25 | * 其它的同 BTC - Bitcoin 26 | 27 | ### 升级说明: 28 | * 同 BTC - Bitcoin 29 | 30 | ### 创建地址: 31 | * 同 BTC - Bitcoin 32 | 33 | ### 追踪入账: 34 | * 同 BTC - Bitcoin 35 | 36 | ### 对外提币: 37 | * 同 BTC - Bitcoin 38 | 39 | ### 归集处理: 40 | * 同 BTC - Bitcoin 41 | 42 | ### 灾难恢复: 43 | * 同 BTC - Bitcoin 44 | 45 | ### 注意事项: 46 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## 已完成 2 | 符号 | 名称 | 主链 | 合约 3 | --- | --- | :-: | :-: 4 | ADA | Cardano | 是 | 无 5 | BCH | BitcoinCash | 是 | 无 6 | BSV | BitcoinSV | 是 | 无 7 | BTC | Bitcoin | 是 | 无 8 | CMT | Cybermile | 是 | 有 9 | DASH | Dash | 是 | 无 10 | EOS | EOS | 是 | 有 11 | ERC20 | Ethereum ERC20 Token | 否 | - 12 | ETH | Ethereum | 是 | 有 13 | LSK | Lisk | 是 | 无 14 | LTC | Litecoin | 是 | 无 15 | MERCI | Merci | 是 | 无 16 | MONA | Monacoin | 是 | 无 17 | NEO | NEO | 是 | 有 18 | NEP5 | NEO NEP5 Token | 否 | - 19 | OMNI | OmniLayer | 否 | - 20 | QTUM | Qutm | 是 | 无 21 | TRC10 | Tron TRC10 Token | 否 | - 22 | TRX | Tron | 是 | 有 23 | XLM | Stellar | 是 | 有 24 | XMR | Monero | 是 | 无 25 | XRP | Ripple | 是 | 无 26 | XTZ | Tezos | 是 | 27 | ZEC | Zcash | 是 | 无 -------------------------------------------------------------------------------- /TRC10 - Tron TRC10 Token.md: -------------------------------------------------------------------------------- 1 | # Tron TRC10 Token - TRC10 2 | 3 | ### 文档版本:3.6.6 4 | 检查日期: 2020.03.16 5 | 6 | ### 官网地址: 7 | https://tron.network 8 | 9 | ### 钱包下载: 10 | https://ww.getmonero.org/downloads/ 11 | 12 | ### 查询网站: 13 | https://tronscan.org/ 14 | 15 | ### 开发文档 16 | https://developers.tron.network/ 17 | 18 | ### 安装说明: 19 | * 同 TRX - Tron 20 | 21 | ### 配置文件: 22 | * 同 TRX - Tron 23 | 24 | ### 升级说明: 25 | * 同 TRX - Tron 26 | 27 | ### 创建地址: 28 | * 同 TRX - Tron 29 | 30 | ### 追踪入账: 31 | 1、获取最新的区块高度 32 | ``` 33 | curl -X POST -H 'content-type: application/json' http://127.0.0.1:8500/wallet/getnowblock \ 34 | ``` 35 | 2、根据区块Hash获取交易列表 36 | ``` 37 | curl -X POST -H 'content-type: application/json' http://127.0.0.1:8500/wallet/getblockbynum \ 38 | -d '{"num":区块高度}}' 39 | 40 | 注意验证以下内容: 41 | ret/contractRet = "SUCCESS" 42 | raw_data/contract/type = "TransferContract" 43 | raw_data/contract/parameter/type_url = "type.googleapis.com/protocol.TransferAssetContract" 44 | raw_data/contract/parameter/value/asset_name = 是Token的名称的ASCII值 45 | ``` 46 | 3、获取单个交易详细 47 | ``` 48 | curl -X POST -H 'content-type: application/json' http://127.0.0.1:8500/wallet/gettransactionbyid \ 49 | -d '{"value":"交易TxId"}' 50 | ``` 51 | 52 | ### 对外提币: 53 | 1、创建交易 54 | ``` 55 | curl -X POST -H 'content-type: application/json' http://127.0.0.1:8500/wallet/transferasset \ 56 | -d '{"to_address":"接收地址的Hex","owner_address":"主账号地址的Hex","amount":转账金额,"asset_name":"合约地址"}' 57 | ``` 58 | 2、签名交易 59 | ``` 60 | curl -X POST -H 'content-type: application/json' http://127.0.0.1:8500/wallet/gettransactionsign \ 61 | -d '{"transaction":第1步返回的整个JSON,"privateKey":"主账号地址的私钥"}' 62 | ``` 63 | 4、广播交易 64 | ``` 65 | curl -X POST -H 'content-type: application/json' http://127.0.0.1:8500/wallet/broadcasttransaction \ 66 | -d '第2步返回的JSON' 67 | ``` 68 | 69 | ### 归集处理: 70 | * 同 TRX - Tron 71 | 72 | ### 灾难恢复: 73 | * 同 TRX - Tron 74 | 75 | ### 注意事项: 76 | -------------------------------------------------------------------------------- /TRX - Tron.md: -------------------------------------------------------------------------------- 1 | # Tron - TRX 2 | 3 | ### 文档版本:4.0.0 4 | 检查日期: 2020.07.12 5 | 6 | ### 官网地址: 7 | https://tron.network 8 | 9 | ### 钱包下载: 10 | https://github.com/tronprotocol/java-tron/releases 11 | 12 | ### 查询网站: 13 | https://tronscan.org/ 14 | 15 | ### 开发文档 16 | https://developers.tron.network/ 17 | 18 | ### 服务器需求 19 | 官方推荐: 16核 32G内存 - AWS: c5.4xlarge 20 | 实测结果: 近期交易量增大8核16G会发生同步延迟,导致发送交易不成功,CPU长期在80%以上。 21 | * 吐槽:目前开发过节点里这个是服务器需求最高的了 22 | 23 | ### 安装说明: 24 | 1、安装Python3 25 | 2、安装Orcale Java SDK 1.8(这里注意不能用openjdk,而且必须1.8版本) 26 | 3、安装tron-cli,详见: 27 | ``` 28 | https://github.com/tronprotocol/tron-cli 29 | ``` 30 | 4、在`数据目录`执行`tron-cli i` 31 | 32 | ### 配置文件: 33 | * 首次同步较慢,可以通过这里 `https://backups.trongrid.io/` 下载离线包后开启节点 34 | * `/数据目录/tron_nodes/fullnode/full.conf` 可修改配置,也可用`tron-cli config`来修改 35 | * 配置文件中的 `storage/transHistory.switch` 需要设置为 `on` 36 | * 没找到绑定IP的配置,这里给个差评,所有端口都是绑定到 0.0.0.0 的,这个有安全隐患 37 | 38 | ### 升级说明: 39 | * 由于tron-cli项目更新的怠惰,无法在使用其直接更新 40 | * 请使用下载FullNode.jar覆盖本地full.jar的方式进行升级 41 | 42 | ### 创建地址: 43 | 1、生成地址 44 | ``` 45 | curl -X POST -H 'content-type: application/json' http://127.0.0.1:8500/wallet/generateaddress 46 | ``` 47 | 2、创建账号 48 | ``` 49 | curl -X POST -H 'content-type: application/json' http://127.0.0.1:8500/wallet/createaccount \ 50 | -d '{"owner_address":"主账号地址的Hex","account_address":"第1步创建的地址"}' 51 | ``` 52 | 3、对创建账号的交易签名 53 | ``` 54 | curl -X POST -H 'content-type: application/json' http://127.0.0.1:8500/wallet/gettransactionsign \ 55 | -d '{"transaction":第2步返回的整个JSON,"privateKey":"主账号地址的私钥"}' 56 | ``` 57 | 4、对外广播交易 58 | ``` 59 | curl -X POST -H 'content-type: application/json' http://127.0.0.1:8500/wallet/broadcasttransaction \ 60 | -d '第3步返回的JSON' 61 | ``` 62 | 63 | ### 追踪入账: 64 | 1、获取最新的区块高度 65 | ``` 66 | curl -X POST -H 'content-type: application/json' http://127.0.0.1:8500/wallet/getnowblock \ 67 | ``` 68 | 2、根据区块Hash获取交易列表 69 | ``` 70 | curl -X POST -H 'content-type: application/json' http://127.0.0.1:8500/wallet/getblockbynum \ 71 | -d '{"num":区块高度}}' 72 | 73 | 注意验证以下内容: 74 | ret/contractRet = "SUCCESS" 75 | raw_data/contract/type = "TransferContract" 76 | raw_data/contract/parameter/type_url = "type.googleapis.com/protocol.TransferContract" 77 | ``` 78 | 3、获取单个交易详细 79 | ``` 80 | curl -X POST -H 'content-type: application/json' http://127.0.0.1:8500/wallet/gettransactionbyid \ 81 | -d '{"value":"交易TxId"}' 82 | ``` 83 | 84 | ### 对外提币: 85 | 1、创建交易 86 | ``` 87 | curl -X POST -H 'content-type: application/json' http://127.0.0.1:8500/wallet/createtransaction \ 88 | -d '{"to_address":"接收地址的Hex","owner_address":"主账号地址的Hex","amount":转账金额x1000000}' 89 | ``` 90 | 2、签名交易 91 | ``` 92 | curl -X POST -H 'content-type: application/json' http://127.0.0.1:8500/wallet/gettransactionsign \ 93 | -d '{"transaction":第1步返回的整个JSON,"privateKey":"主账号地址的私钥"}' 94 | ``` 95 | 4、广播交易 96 | ``` 97 | curl -X POST -H 'content-type: application/json' http://127.0.0.1:8500/wallet/broadcasttransaction \ 98 | -d '第2步返回的JSON' 99 | ``` 100 | 101 | ### 归集处理: 102 | * TRX是1对1的交易,所以需要进行归集 103 | 104 | ### 灾难恢复: 105 | * 备份地址的私钥即可恢复 106 | 107 | ### 注意事项: 108 | -------------------------------------------------------------------------------- /XLM - Stellar.md: -------------------------------------------------------------------------------- 1 | # Stellar - XLM 2 | 3 | ### 文档版本: 4 | Stellar-Core: 13.1.0 5 | Stellar-Horizon: 1.4.0 6 | 检查日期: 2020.06.20 7 | 8 | ### 官网地址: 9 | https://www.stellar.org/ 10 | 11 | ### 钱包下载: 12 | https://github.com/stellar/packages/tree/master/docs 13 | 14 | ### 查询网站: 15 | https://dashboard.stellar.org/
16 | https://stellarbeat.io/
17 | https://stellar.expert/explorer/public/ 18 | 19 | ### 开发文档 20 | https://www.stellar.org/developers/ 21 | 22 | ### 安装说明: 23 | 1、准备Ubuntu的系统,服务器版本可以是18.04 (文档建议16.04,是文档已经落后了) 24 | 2、根据以下链接中的说明,将源添加入系统 25 | ``` 26 | https://github.com/stellar/packages/blob/master/docs/adding-the-sdf-stable-repository-to-your-system.md 27 | ``` 28 | 3、执行以下命令安装程序 29 | ``` 30 | sudo apt-get install stellar-core 31 | sudo apt-get install stellar-core-utils 32 | sudo apt-get install stellar-core-postgres 33 | sudo apt-get install stellar-horizon 34 | sudo apt-get install stellar-horizon-utils 35 | sudo apt-get install stellar-horizon-postgres 36 | ``` 37 | 38 | ### 配置文件: 39 | 1、首先为Postgres的用户postgres建一个密码 40 | ``` 41 | sudo -u postgres psql 42 | ALTER USER postgres WITH PASSWORD 'postgres'; 43 | \q 44 | ``` 45 | 2、为core和horizon创建数据库 46 | ``` 47 | createdb core_db 48 | createdb horizon_db 49 | ``` 50 | 3、为core创建配置文件 51 | ``` 52 | 根据样例文件进行修改: 53 | https://github.com/stellar/stellar-core/blob/master/docs/stellar-core_example.cfg 54 | 55 | LOG_FILE_PATH="日志文件" 56 | BUCKET_DIR_PATH="Bucket文件路径" 57 | DATABASE="postgresql://dbname=core_db user=postgres password=postgres host=127.0.0.1" 58 | NODE_NAMES=[ 59 | "GBJQUIXUO4XSNPAUT6ODLZUJRV2NPXYASKUBY4G5MYP3M47PCVI55MNT satoshipay", 60 | "GAZ437J46SCFPZEDLVGDMKZPLFO77XJ4QVAURSJVRZK2T5S7XUFHXI2Z coinqvest", 61 | "GAOXP7T6F44Q2F5EBWQEVHPQPOSLQO45IM44IRLKHRDCJZX66B6Y4VAI blockchain", 62 | "GCWJKM4EGTGJUVSWUJDPCQEOEP5LHSOFKSA4HALBTOO4T4H3HCHOM6UX keybase", 63 | "GBJ7T3BTLX2BP3T5Q4256PUF7JMDAB35LLO32QRDYE67TDDMN7H33GGE ibmhk" 64 | ] 65 | NETWORK_PASSPHRASE="Public Global Stellar Network ; September 2015" 66 | CATCHUP_COMPLETE=false 67 | CATCHUP_RECENT=100000 #本地保存的区块数量 68 | 69 | KNOWN_PEERS=[ 70 | "core-live-a.stellar.org:11625", 71 | "core-live-b.stellar.org:11625", 72 | "core-live-c.stellar.org:11625", 73 | "stellar.256kw.com", 74 | "stellar1.tempo.eu.com", 75 | "stellar.satoshipay.io" 76 | ] 77 | 78 | [[HOME_DOMAINS]] 79 | HOME_DOMAIN="www.stellar.org" 80 | QUALITY="HIGH" 81 | 82 | [[VALIDATORS]] 83 | NAME="sdflive1" 84 | HOME_DOMAIN="www.stellar.org" 85 | PUBLIC_KEY="GCGB2S2KGYARPVIA37HYZXVRM2YZUEXA6S33ZU5BUDC6THSB62LZSTYH" 86 | ADDRESS="core-live-a.stellar.org" 87 | HISTORY="curl -sf http://history.stellar.org/prd/core-live/core_live_001/{0} -o {1}" 88 | [[VALIDATORS]] 89 | NAME="sdflive2" 90 | HOME_DOMAIN="www.stellar.org" 91 | PUBLIC_KEY="GCM6QMP3DLRPTAZW2UZPCPX2LF3SXWXKPMP3GKFZBDSF3QZGV2G5QSTK" 92 | ADDRESS="core-live-b.stellar.org" 93 | HISTORY="curl -sf http://history.stellar.org/prd/core-live/core_live_002/{0} -o {1}" 94 | [[VALIDATORS]] 95 | NAME="sdflive3" 96 | HOME_DOMAIN="www.stellar.org" 97 | PUBLIC_KEY="GABMKJM6I25XI4K7U6XWMULOUQIQ27BCTMLS6BYYSOWKTBUXVRJSXHYQ" 98 | ADDRESS="core-live-c.stellar.org" 99 | HISTORY="curl -sf http://history.stellar.org/prd/core-live/core_live_003/{0} -o {1}" 100 | [HISTORY.local] #此处根据实际情况修改目录 101 | get="cp /tmp/stellar/history/{0} {1}" 102 | put="cp {0} /tmp/stellar/history/{1}" 103 | mkdir="mkdir -p /tmp/stellar/history/{0}" 104 | 105 | [HISTORY.sdf1] 106 | get="curl -sf http://history.stellar.org/prd/core-live/core_live_001/{0} -o {1}" 107 | [HISTORY.sdf2] 108 | get="curl -sf http://history.stellar.org/prd/core-live/core_live_002/{0} -o {1}" 109 | [HISTORY.sdf3] 110 | get="curl -sf http://history.stellar.org/prd/core-live/core_live_003/{0} -o {1}" 111 | ``` 112 | 4、stellar-core初始化 113 | ``` 114 | stellar-core --conf /etc/stellar-core.cfg new-db 115 | stellar-core --conf /etc/stellar-core.cfg new-hist local 116 | ``` 117 | 5、stellar-core启动 118 | ``` 119 | stellar-core --conf /data/xlm-data/stellar-core.cfg run 120 | ``` 121 | 6、stellar-horizon初始化 122 | ``` 123 | #初始化数据库 124 | stellar-horizon \ 125 | --db-url "postgres://postgres:postgres@localhost/horizon_db?sslmode=disable" \ 126 | --stellar-core-db-url "postgres://postgres:postgres@localhost/core_db?sslmode=disable" \ 127 | --stellar-core-url http://localhost:11626 \ 128 | --network-passphrase "Public Global Stellar Network ; September 2015" \ 129 | db init 130 | 131 | #从Core取回若干个区块数据 132 | stellar-horizon \ 133 | --db-url "postgres://postgres:postgres@localhost/horizon_db?sslmode=disable" \ 134 | --stellar-core-db-url "postgres://postgres:postgres@localhost/core_db?sslmode=disable" \ 135 | --stellar-core-url http://localhost:11626 \ 136 | --network-passphrase "Public Global Stellar Network ; September 2015" \ 137 | db reingest range 29168700 29188700 138 | ``` 139 | 7、stellar-horizon启动 140 | ``` 141 | stellar-horizon \ 142 | --db-url "postgres://postgres:postgres@localhost/horizon_db?sslmode=disable" \ 143 | --stellar-core-db-url "postgres://postgres:postgres@localhost/core_db?sslmode=disable" \ 144 | --stellar-core-url http://localhost:11626 \ 145 | --network-passphrase "Public Global Stellar Network ; September 2015" \ 146 | --ingest \ 147 | --history-retention-count 50000 \ 148 | --history-stale-threshold 100000 \ 149 | --per-hour-rate-limit 36000 \ 150 | serve 151 | ``` 152 | 153 | ### 升级说明: 154 | 升级可详见以下链接: 155 | ``` 156 | https://github.com/stellar/packages/blob/master/docs/upgrading.md 157 | 158 | Horizon更新后执行一次 159 | stellar-horizon db migrate up 160 | ``` 161 | 162 | ### 创建地址: 163 | 1、通过命令行创建唯一的地址 164 | ``` 165 | stellar-core gen-seed 166 | ``` 167 | 2、往地址上打入20XLM用来激活 168 | 3、交易所用户的地址使用TAG来进行区分,所以整个交易所只需要一个地址即可 169 | 170 | ### 追踪入账: 171 | 1、获取最新的区块高度 172 | ``` 173 | curl -X GET 'http://127.0.0.1:8000/ledgers?limit=1&order=desc' 174 | ``` 175 | 2、根据区块高度获取叫一列表 176 | ``` 177 | curl -X GET 'http://127.0.0.1:8000/ledgers/区块高度/payments?limit=200&order=asc' 178 | 179 | * 验证以下数据 180 | asset_type = 'native' # 验证是否原生XLM币种 181 | type = 'payment' # 验证交易类型 182 | transaction_successful = true # 验证交易是否成功 183 | 184 | * 如果一个区块的交易超过200个,需要通过cursor来循环获取 185 | ``` 186 | 3、根据TxId获取具体信息 187 | ``` 188 | curl -X GET 'http://127.0.0.1:8000/transactions/交易的Hash' 189 | ``` 190 | 191 | ### 对外提币: 192 | 1、由于Horizon不包含sign功能,建议引用官方的SDK来封装一个专门签名的独立程序 193 | ``` 194 | 官方SDK: 195 | Python版 : https://github.com/StellarCN/py-stellar-base 196 | .Net版 : https://github.com/elucidsoft/dotnet-stellar-sdk 197 | Ruby版 : https://github.com/stellar/ruby-stellar-sdk 198 | iOS & Mac版 : https://github.com/Soneso/stellar-ios-mac-sdk 199 | Scala版 : https://github.com/Synesso/scala-stellar-sdk 200 | C++版 : https://github.com/bnogalm/StellarQtSDK 201 | ``` 202 | 2、提交交易 203 | ``` 204 | curl -X POST 'http://127.0.0.1:8000/transactions' \ 205 | -d 'tx=签名后的交易数据' 206 | ``` 207 | 208 | ### 归集处理: 209 | * 无需归集 210 | 211 | ### 灾难恢复: 212 | * 唯一地址的私钥备份好即可 213 | 214 | ### 注意事项: 215 | -------------------------------------------------------------------------------- /XMR - Monero.md: -------------------------------------------------------------------------------- 1 | # Monero - XMR 2 | 3 | ### 文档版本:0.15.0.1 4 | 检查日期: 2020.03.16 5 | 6 | ### 官网地址: 7 | https://ww.getmonero.org/ 8 | 9 | ### 钱包下载: 10 | https://ww.getmonero.org/downloads/ 11 | 12 | ### 查询网站: 13 | https://moneroblocks.info/ 14 | 15 | ### 开发文档 16 | https://ww.getmonero.org/resources/developer-guides/ 17 | 18 | ### 安装说明: 19 | 1、解压缩文件 20 | 2、启动节点 21 | ``` 22 | /安装目录/monerod --data-dir=数据目录 23 | ``` 24 | 3、启动钱包RPC(未创建钱包时) 25 | ``` 26 | /安装目录/monero-wallet-rpc --rpc-bind-port RPC端口 --wallet-dir 钱包目录 --disable-rpc-login 27 | ``` 28 | 4、启动钱包RPC(创建完钱包后) 29 | ``` 30 | /安装目录/monero-wallet-rpc --rpc-bind-port RPC端口 --wallet-file 钱包文件 --disable-rpc-login --prompt-for-password 31 | ``` 32 | 33 | ### 配置文件: 34 | * 根据需求修改配置 35 | 36 | ### 升级说明: 37 | 1、下载最新的版本 38 | 2、重命名旧版本的程序目录以做备份 39 | 3、解压缩新的压缩包并改名为bitcoin 40 | 4、重启节点和钱包 41 | 42 | ### 创建地址: 43 | 1、通过命令行生成一个钱包 44 | ``` 45 | /安装目录/monero-wallet-cli --generate-new-wallet 钱包名称 46 | ``` 47 | 2、创建子地址 48 | ``` 49 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:PRC端口/ \ 50 | -d '{"jsonrpc":"2.0","id":"随便写","method":"create_address","params":{"account_index":0}}' 51 | ``` 52 | 53 | ### 追踪入账: 54 | 1、获取最新的区块高度 55 | ``` 56 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:PRC端口/ \ 57 | -d '{"jsonrpc":"2.0","id":"随便写","method":"get_height","params":[]}' 58 | ``` 59 | 2、根据区块Hash获取交易列表 60 | ``` 61 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:PRC端口/ \ 62 | -d '{"jsonrpc":"2.0","id":"随便写","method":"get_transfers","params":{"in":true,"filter_by_height":true,"min_height":起始高度,"max_height":结束高度}}' 63 | ``` 64 | 3、解析收款人地址 65 | ``` 66 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:PRC端口/ \ 67 | -d '{"jsonrpc":"2.0","id":"随便写","method":"get_address","params":{"account_index":本地账户索引号,"address_index":第2步所得到的/in/subaddr_index/minor的值}}' 68 | ``` 69 | 4、根据地址获取索引 70 | ``` 71 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:PRC端口/ \ 72 | -d '{"jsonrpc":"2.0","id":"随便写","method":"get_address_index","params":{"address":本地收款地址}}' 73 | ``` 74 | 5、获取单个交易详细 75 | ``` 76 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:PRC端口/ \ 77 | -d '{"jsonrpc":"2.0","id":"随便写","method":"get_transfer_by_txid","params":{"txid":"交易TxId","account_index":第4步所得到的/index/major的值}}' 78 | ``` 79 | 80 | ### 对外提币: 81 | ``` 82 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:PRC端口/ \ 83 | -d '{"jsonrpc":"1.0","id":"随便写","method":"transfer","params":{"destinations":[{"address":"接收方的Address","amount":发送数量}],"account_index":本地账户Account序号,"priority":0,"mixin":,0"ring_size":1,"get_tx_metadata":false,"get_tx_hex":true,"new_algorithm":false,"unlock_time":0}}' 84 | ``` 85 | 86 | ### 归集处理: 87 | * 无需归集 88 | 89 | ### 灾难恢复: 90 | * 由于是单地址模式所以备份单一钱包文件即可 91 | 92 | ### 注意事项: 93 | -------------------------------------------------------------------------------- /XRP - Ripple.md: -------------------------------------------------------------------------------- 1 | # Ripple - XRP 2 | 3 | ### 文档版本:1.5.0 4 | 检查日期: 2020.07.03 5 | 6 | ### 官网地址: 7 | https://ripple.com/ 8 | 9 | ### 钱包下载: 10 | https://xrpl.org/install-rippled.html 11 | 12 | ### 查询网站: 13 | https://xrpcharts.ripple.com/ 14 | 15 | ### 开发文档 16 | https://developers.ripple.com/ 17 | 18 | ### 安装说明: 19 | https://xrpl.org/install-rippled.html 20 | 21 | ### 配置文件: 22 | ``` 23 | vi /opt/ripple/etc/rippled.cfg 24 | ``` 25 | * 根据服务器配置修改 `node_size` 的配置 26 | * `node_db` 中的 `online_delete` 可配置保留多少个区块的数据 27 | * `ledger_history` 的配置可设置回溯多少个区块 28 | * 配置文件尾部添加 `signing_support` 配置块,值为 `true` 29 | 30 | ### 升级说明: 31 | https://xrpl.org/install-rippled.html 32 | 33 | ### 创建地址: 34 | 1、通过命令行创建一个地址 35 | ``` 36 | /opt/ripple/bin/rippled wallet_propose 37 | ``` 38 | 2、往地址上打入20XRP用来激活 39 | 3、交易所用户的地址使用TAG来进行区分,所以整个交易所只需要一个地址即可 40 | 41 | ### 追踪入账: 42 | 1、获取最新的区块高度 43 | ``` 44 | curl -X POST -H 'content-type: application/json' http://127.0.0.1:5005/ \ 45 | -d '{"method":"ledger_current","params":[]}' 46 | ``` 47 | 2、根据区块高度获取叫一列表 48 | ``` 49 | curl -X POST -H 'content-type: application/json' http://127.0.0.1:5005/ \ 50 | -d '{"method":"ledger","params":{"binary":false,"ledger_index":区块高度,"transactions":true,"expand":true}}' 51 | ``` 52 | 3、根据TxId获取具体信息 53 | ``` 54 | curl -X POST -H 'content-type: application/json' http://127.0.0.1:5005/ \ 55 | -d '{"method":"tx","params":{"binary":false,"transaction":交易Id}}' 56 | ``` 57 | * 注意:金额使用delivered_amount字段,而不是amount字段 58 | 59 | ### 对外提币: 60 | 1、获取当前的手续费 61 | ``` 62 | curl -X POST -H 'content-type: application/json' http://127.0.0.1:5005/ \ 63 | -d '{"method":"fee","params":[]}' 64 | ``` 65 | 2、提交交易 66 | ``` 67 | curl -X POST -H 'content-type: application/json' http://127.0.0.1:5005/ \ 68 | -d '{"method":"submit","params":{"seed_hex":"创建地址时的master_hex","key_type":"secp256k1","tx_json":{"TransactionType":"Payment","Account":"交易所地址","Destination":"接收地址","Amount":支出数量,"DestinationTag":"接受地址TAG"},"fee_mult_max":第1步取到的手续费}}' 69 | ``` 70 | * 支出数量需要 x 1000000 71 | 72 | ### 归集处理: 73 | * 无需归集 74 | 75 | ### 灾难恢复: 76 | * 唯一地址的私钥备份好即可 77 | 78 | ### 注意事项: 79 | -------------------------------------------------------------------------------- /XTZ - Tezos.md: -------------------------------------------------------------------------------- 1 | # Tezos - XTZ 2 | 3 | ### 文档版本:2020-01 4 | 检查日期: 2020.05.05 5 | 6 | ### 官网地址: 7 | https://www.tezos.com/ 8 | 9 | ### 钱包下载: 10 | https://github.com/tezoscommunity/FAQ/blob/master/Compile_Mainnet.md 11 | 12 | ### 查询网站: 13 | https://tezos.id/
14 | https://arronax.io/ 15 | 16 | ### 开发文档 17 | https://developers.tezos.com/ 18 | http://tezos.gitlab.io/ 19 | 20 | ### 安装说明: 21 | 根据官网访问文档安装没有问题 22 | ``` 23 | https://github.com/tezoscommunity/FAQ/blob/master/Compile_Mainnet.md 24 | ``` 25 | 26 | ### 配置文件: 27 | * 首次同步较慢,可以通过这里 `https://tezosshots.com/` 下载快照数据 28 | * 快照数据用mega存储,mega有一个megacmd,可以在Linux运行 29 | * `./tezos-node identity generate 26.` 生成identity,数字不可低于26,数字越大时间越长 30 | * `./tezos-node run --rpc-addr 127.0.0.1:8732 --data-dir=/xxx` 运行节点,可以指定数据目录 31 | * `./tezos-client bootstrapped` 通过此命令可以查看同步进度 32 | 33 | ### 升级说明: 34 | 由于是源码编译的,所以需要更新源码,然后可根据安装文档下的Rebuild来进行升级 35 | 36 | ### 创建地址: 37 | 由于在 `tezos-client` 或 `rpc` 中均为找到地址生成的功能,所以请引用或者参考三方库来做地址的生成: 38 | ``` 39 | https://developers.tezos.com/ 40 | Getting Started -> 3 Use a Library -> 选择一个符合的语言 41 | ``` 42 | 43 | ### 追踪入账: 44 | 1、获取最新的区块高度 45 | ``` 46 | curl -X GET -H 'content-type: application/json' http://127.0.0.1:8732/chains/main/blocks/head 47 | ``` 48 | 2、根据区块Hash获取交易列表 49 | ``` 50 | curl -X GET -H 'content-type: application/json' http://127.0.0.1:8732/chains/main/blocks/940067 51 | 52 | 注:由于没有获取单独交易的方法,所以所有的交易和验证都在获取区块的列表中完成 53 | 54 | 注意验证以下内容: 55 | oprations/protocol/contentes/kind = "transaction" 56 | oprations/protocol/contentes/amount > 0 57 | oprations/protocol/contentes/metadatas 是转账明细,可根据需要验证 58 | ``` 59 | 60 | ### 对外提币: 61 | 1、导入地址 62 | ``` 63 | tezos-client import secret key 归集地址 unencrypted:私钥 --force 64 | ``` 65 | 2、发送交易 66 | ``` 67 | tezos-client transfer 交易金额 from 归集地址 to 目标地址 68 | 69 | 注:如果输出错误说要补充burn-cap,并且会给出金额,则重新执行以下命令 70 | tezos-client transfer 交易金额 from 归集地址 to 目标地址 --burn-cap 需要烧掉的带宽金额 71 | ``` 72 | 3、等待执行完成并获取到上链后的区块Hash,以备后期使用 73 | 4、删除本地导入的地址(如果需要,这样可以保持节点上不存私钥) 74 | ``` 75 | tezos-client forget address 归集地址 --force 76 | ``` 77 | 78 | ### 归集处理: 79 | * 从协议和区块的数据来看Tezos应该支持多对多的交易,可以免于归集,但由于文档不明和操作复杂所以还是选择需要归集比较稳妥 80 | 81 | ### 灾难恢复: 82 | * 地址由三方类库生成时备份地址的私钥即可恢复 83 | 84 | ### 注意事项: 85 | -------------------------------------------------------------------------------- /ZEC - Zcash.md: -------------------------------------------------------------------------------- 1 | # Zcash - ZEC 2 | 3 | ### 文档版本:2.1.1-1 4 | 检查日期: 2020.03.16 5 | 6 | ### 官网地址: 7 | https://z.cash/ 8 | 9 | ### 钱包下载: 10 | https://zcash.readthedocs.io/en/latest/rtd_pages/install_binary_tarball.html 11 | 12 | ### 查询网站: 13 | https://zcash.tokenview.com/ 14 | 15 | ### 开发文档 16 | https://zcash.readthedocs.io/ 17 | 18 | ### 安装说明: 19 | * 同 BTC - Bitcoin (文件名区别) 20 | 21 | ### 配置文件: 22 | * 同 BTC - Bitcoin 23 | * 加上一下这段 24 | ``` 25 | addnode=mainnet.z.cash 26 | ``` 27 | 28 | ### 升级说明: 29 | * 同 BTC - Bitcoin 30 | 31 | ### 创建地址: 32 | * 同 BTC - Bitcoin 33 | 34 | ### 追踪入账: 35 | * 同 BTC - Bitcoin 36 | 37 | ### 对外提币: 38 | 1、估算当前费用 39 | ``` 40 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \ 41 | -d '{"jsonrpc":"1.0","id":"随便写","method":"estimatefee","params":[期望多少个区块内到达]}' 42 | ``` 43 | 44 | 2、创建RAW交易 45 | ``` 46 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \ 47 | -d '{"jsonrpc":"1.0","id":"随便写","method":"createrawtransaction","params":[[{"txid":"输出的Txid","vout":输出的Tx的序号}],[{"接收地址":接收金额}]}' 48 | ``` 49 | 50 | 3、导入私钥(如果私钥已在节点上,可跳过) 51 | ``` 52 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \ 53 | -d '{"jsonrpc":"1.0","id":"随便写","method":"importprivkey","params":["私钥密文","标签(可留空)",false]}' 54 | ``` 55 | 56 | 4、签名RAW交易 57 | ``` 58 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \ 59 | -d '{"jsonrpc":"1.0","id":"随便写","method":"signrawtransaction","params":["创建RAW返回的Hex"]}' 60 | ``` 61 | 62 | 5、发送RAW交易 63 | ``` 64 | curl -X POST -H 'content-type: text/plain;' http://127.0.0.1:8332/ -u RPC用户:RPC密码 \ 65 | -d '{"jsonrpc":"1.0","id":"随便写","method":"sendrawtransaction","params":["完成签名的Hex"]}' 66 | ``` 67 | 68 | ### 归集处理: 69 | * 同 BTC - Bitcoin 70 | 71 | ### 灾难恢复: 72 | * 同 BTC - Bitcoin 73 | 74 | ### 注意事项: 75 | --------------------------------------------------------------------------------