分布式记账钱包命令

分布式记账钱包命令

命令

命令概述

重要性

主要对象

1

addmultisigaddress

新增多重签名地址

地址

2

addnode

新增节点

☆☆☆

节点

3

backupwallet

备份钱包

☆☆☆☆☆

钱包

4

createmultisig

创建多重签名地址

地址

5

createrawtransaction

创建原始交易

交易

6

decoderawtransaction

解码原始交易

交易

7

dumpprivkey

导出私钥

☆☆☆☆☆

地址

8

getaccount

取得地址账户

☆☆☆

账户

9

getaccountaddress

取得账户地址

☆☆☆

账户

10

getaddednodeinfo

取得新增节点信息

节点

11

getaddressesbyaccount

取得账户所有地址

☆☆☆☆☆

账户

12

getbalance

取得余额

☆☆☆☆☆

账户

13

getblock

取得块信息

☆☆☆

14

getblockcount

取得块数量

☆☆☆

15

getblockhash

取得块哈希

☆☆☆

16

getblocktemplate

取得块模板

17

getconnectioncount

取得连接数

节点

18

getdifficulty

取得当前难度

采矿

19

getgenerate

判断是否采矿

采矿

20

gethashespersec

取得采矿性能

采矿

21

getinfo

取得客户端信息

☆☆☆

服务

22

getmemorypool

取得内存池信息

采矿

23

getmininginfo

取得采矿信息

☆☆☆☆

采矿

24

getnewaddress

创建新地址

☆☆☆☆☆

地址

25

getpeerinfo

取得节点信息

节点

26

getrawmempool

取得内存池原始交易ID

采矿

27

getrawtransaction

取得原始交易信息

交易

28

getreceivedbyaccount

取得账户收款金额

☆☆☆☆☆

账户

29

getreceivedbyaddress

取得地址收款金额

☆☆☆

地址

30

gettransaction

取得交易信息

☆☆☆☆☆

交易

31

gettxout

取得交易输出

交易

32

gettxoutsetinfo

取得交易输出设定信息

交易

33

getwork

计算

采矿

34

help

帮助

☆☆☆

服务

35

importprivkey

导入密钥

☆☆☆☆☆

地址

36

keypoolrefill

填满密钥池

☆☆☆

钱包

37

listaccounts

查询账户列表

☆☆☆

账户

38

listaddressgroupings

查询地址列表

☆☆☆☆☆

地址

39

listreceivedbyaccount

列出账户的收款信息

☆☆☆☆☆

账户

40

listreceivedbyaddress

列出地址的收款信息

☆☆☆☆☆

地址

41

listsinceblock

列出指定块之后的交易

交易

42

listtransactions

列出交易

☆☆☆☆☆

交易

43

listunspent

列出未动用输出

☆☆☆☆

交易

44

listlockunspent

列出锁定的未动用输出

☆☆

交易

45

lockunspent

锁定未动用输出

☆☆

交易

46

move

转账

☆☆☆☆

账户

47

sendfrom

从账户付款

☆☆☆☆☆

交易

48

sendmany

向多个地址付款

☆☆☆☆

交易

49

sendrawtransaction

发布原始交易

交易

50

sendtoaddress

付款

☆☆☆☆☆

交易

51

setaccount

设定账户

☆☆☆☆☆

账户

52

setgenerate

设定是否采矿

☆☆☆☆

采矿

53

settxfee

设定交易费

☆☆☆

交易

54

signmessage

信息签名

☆☆☆☆☆

地址

55

signrawtransaction

对原始交易签名

交易

56

stop

停止服务

☆☆☆

服务

57

submitblock

提交块

58

validateaddress

地址验证

☆☆☆

地址

59

verifymessage

验证信息

☆☆☆☆☆

地址

60

walletlock

钱包锁定

☆☆☆

钱包

61

walletpassphrase

钱包解锁

☆☆☆

钱包

62

walletpassphrasechange

修改钱包密码

☆☆☆☆☆

钱包

以太坊区块链常用命令:

    geth -networkid 123 -dev -datadir data1 -pc -rpcaddr 47.104.228.59 -rpcport 8989 -port 3000     //自动创建矿区

    geth attach ipc:geth.ipc    //进入矿区

    eth.accounts        //查询账户

    personal.newAccount("123456")    //创建一个账户 参数为私钥密码 返回值为账户公钥

    personal.listAccounts    //查询账户列表

    eth.blockNumber    //查看区块链数

    miner.start()    //开始挖矿

    miner.stop()    //停止挖矿

    eth.getBalance("账户")    //查看账户余额

    eth.sendTransaction({from:"1" ,to:"2",value:web3.toWei(3,"ether")})    //从1账户转账3个以太币到2账户

    personal.unlockAccount("转出账户","密码")    //解锁转出账户

    web3.eth.getBalance(eth.coinbase)

猜你喜欢

转载自blog.csdn.net/Darryl_Tang/article/details/90766091
今日推荐