3

GitHub - aoaio/go-aoa

 5 years ago
source link: https://github.com/aoaio/go-aoa
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

README.md

go-aoa

Deploy

Under Linux or Mac, get the compressed file from release and extract it to get the executable file aoa.Create the storage directory /data/aoa, and copy the executable file to the directory. Then execute the startup command, in which '--port' is the customized chain synchronization port, '--rpc' would open RPC service, '--rpcaddr' is the self-defined RPC listening IP which should set to 127.0.0.1 if you do not want the remote RPC connection, --rpcport is the customized RCP listening port. for example

tar zxvf aoa-linux-amd64-1.1.16-unstable.tar.gz
mkdir –p /data/aoa
cp aoa-linux-amd64-1.1.16-unstable/aoa /data/aoa/
nohup /data/aoa/aoa --datadir /data/aoa/aoa-data --port 30303 --rpc --rpcaddr 0.0.0.0 --rpcport 8545 &>> /data/aoa/aoa.log &

Attach the console

/data/aoa/aoa attach /data/aoa/aoa-data/aoa.ipc

Common console commond

#get block height
aoa.blockNumber
#get block info
aoa.getBlock(blockHashOrBlockNumber)
#get accounts in wallet
aoa.accounts
#get transaction info
aoa.getTransaction(transactionHash)
#generate new accounts and store them in the keystore directory, encrypted with passphrase
personal.newAccount(passphrase)
#sent transaction
personal.sendTransaction({from:'affress',to:'address',value:web3.toWei(100,'aoa'),action:0}, "password")
#start rpc by console
admin.startRPC("0.0.0.0", 8545)
#stop rpc by console
admin.stopRPC()

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK