list_wallets 查看钱包列表

postv1/wallet/list_walletsapi:http://127.0.0.1:8888/v1/wallet/list_walletsparams:无returns:["testnet *"]testnet:钱包名称

create 创建钱包

postv1/wallet/createapi:http://127.0.0.1:8888/v1/wallet/createparams:walletname:钱包名称 returns:"PW5Kxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"PW5Kxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:钱包密码

open 打开钱包

postv1/wallet/openapi:http://127.0.0.1:8888/v1/wallet/openparams:"testnet"returns:{}成功打开后返回{}

unlock 解锁钱包

postv1/wallet/unlockapi:http://127.0.0.1:8888/v1/wallet/unlockparams:["testnet", "PW5Kxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"]钱包名称钱包密码returns:{}成功解锁后返回{}

import_key 导入私钥到钱包

postv1/wallet/import_keyapi:http://127.0.0.1:8888/v1/wallet/import_keyparams:["testcreate","5Jvxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"]钱包名称私钥returns:{}成功导入后返回{}

get_public_keys 获取所有钱包中的公钥

postv1/wallet/get_public_keysapi:http://127.0.0.1:8888/v1/wallet/get_public_keysparams:无returns:["EOS57NgJAtkVZdFYGDc6GZmx2eNz5utBLVeM6pspVjhnH11aibUJi","EOS5roytgLL7BuhyKDbxHfxBzdENGioMEM6nhzPXQcaeAnYQf3Uge","EOS5u3yTpyS6Mjyy16RGsgbxV8WYZBoU8qtSZusJNMfkQndo2imTZ","EOS6VEdYvgvNyu2dAwjSszb6ty9jJHTbp9pvFdoEdxLtGfSLs7zY8","EOS8B27UNxvKZ1fSdumUhSfWGTthCsJrLLGLjDoa4vkYc3ohpPzaY"]

list_keys 获取指定钱包中的公私钥对

postv1/wallet/list_keysapi:http://127.0.0.1:8888/v1/wallet/list_keysparams:["testcreate", "PW5Kxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"]钱包名称钱包密码returns:["EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV","5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3"]

create_key 在指定钱包中创建公钥

postv1/wallet/create_keyapi:http://127.0.0.1:8888/v1/wallet/create_keyparams:["testcreate", "K1"]钱包名称公钥类型returns:"EOS55xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

lock 锁定指定钱包

postv1/wallet/lockapi:http://127.0.0.1:8888/v1/wallet/lockparams:"testcreate"钱包名称returns:{}

lock_all 锁定所有钱包

postv1/wallet/lock_allapi:http://127.0.0.1:8888/v1/wallet/lock_allparams:无returns:{}

set_timeout 设置钱包的锁定时间,单位为秒

postv1/wallet/set_timeoutapi:http://127.0.0.1:8888/v1/wallet/set_timeoutparams:3600returns:{}

sign_transaction 签署交易

postv1/wallet/sign_transactionapi:http://127.0.0.1:8888/v1/wallet/sign_transactionparams:[{"ref_block_num": 13598552,"ref_block_prefix": 822522680,"expiration": "2018-09-08T09:31:47.500","actions": [{"account": "eosio.token","name": "transfer","authorization": [{"actor": "testnetyy111","permission": "active"}],"data": "1042f03eab99b1ca1042c02dab99b1ca40420f000000000004454f5300000000086869207468657265"}],"signatures": []},["EOS6Z7mUQeFC2cQTT3xMyZh2wsLQoHih1bTMgRhr3dbichprTi7Rc"], "038f4b0fc8ff18a4f0842a8f0564611f6e96e8535901dd45e43ac8691a1c4dca"]ref_block_num:签署交易时最新区块编号expiration:过期时间account:合约名称name:合约方法actor:调用者permission:使用的权限类型data:交易数据的bin格式EOS6Z7mUQeFC2cQTT3xMyZh2wsLQoHih1bTMgRhr3dbichprTi7Rc:公钥038f4b0fc8ff18a4f0842a8f0564611f6e96e8535901dd45e43ac8691a1c4dca:chain_idreturns:{"expiration": "2018-09-08T09:31:47","ref_block_num": 32600,"ref_block_prefix": 822522680,"max_net_usage_words": 0,"max_cpu_usage_ms": 0,"delay_sec": 0,"context_free_actions": [],"actions": [{"account": "eosio.token","name": "transfer","authorization": [{"actor": "testnetyy111","permission": "active"}],"data": "1042f03eab99b1ca1042c02dab99b1ca40420f000000000004454f5300000000086869207468657265"}],"transaction_extensions": [],"signatures": ["SIG_K1_Kkujqvvxt89EG7cCAAk47KDm3TXQHfooSGPKivWPFTMaph5gnyKfUiLomzEzCwF3yttJ9yCQ82LVNUdrhrS3ssryaH1trZ"],"context_free_data": []}signatures:交易的签名。后面push_transaction的时候需要