$ cleos set account permission lucaszhang11 active '{"threshold": 1, "keys": [{"key": "EOS64fsvNKzjEoKCDH7u2zhKAouNWt2xAqWN5dxpLfMnVd17uGNYp", "weight": 1}], "accounts": []}' owner
executed transaction: 34063ebd1312c6704aa3978e0327ea996df43148cc44da49c223b48d7f587e70 160 bytes 649 us
# eosio <= eosio::updateauth {"account":"lucaszhang11","permission":"active","parent":"owner","auth":{"threshold":1,"keys":[{"key...
warning: transaction executed locally, but may not be confirmed by the network yet
$ cleos get account lucaszhang11
permissions:
owner 1: 1 EOS5ZxpFzmqybRZjoBt9Xavb3PrYBG8LNf91aag2KaCdE1nEb2G8Y
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## clean source | |
sudo rm /etc/apt/sources.list.d/mongodb*.list | |
## Import the public key used by the package management system. | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927 | |
## Create a list file for MongoDB | |
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list | |
## Reload local package database |
$ cleos --wallet-url http://localhost:8900/ wallet create
Creating wallet: default
Save password to use in the future to unlock this wallet.
Without password imported keys will not be retrievable.
"PW5Jxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cleos --print-request --print-response transfer lucaszhang15 lucaszhang11 "0.1 EOS" "test" | |
REQUEST: | |
--------------------- | |
POST /v1/chain/get_currency_stats HTTP/1.0 | |
Host: localhost | |
content-length: 63 | |
Accept: */* | |
Connection: close | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var filter = web3.eth.filter({fromBlock: 4847473, toBlock: 4847473}); | |
filter.watch(function(error, result) { | |
if (error) { | |
logger.error('Block error', error); | |
return; | |
}; | |
logger.info(JSON.stringify(result)); | |
} |