Last active
September 9, 2018 08:24
-
-
Save DimitarSD/4974eac17e5b65f7760fc929aaaed9e7 to your computer and use it in GitHub Desktop.
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
# Executing action - template | |
# cleos push action {account} {action_name} '{data}' -p {account} | |
# Creating new robot | |
cleos push action weyland create '{"account":"weyland","newRobot":{"series_number":14001992,"model":"A330","operating_system":"DX42","profession":"engineer","owner":"","manufactured":0}}' -p weyland | |
# Get robot by series number | |
cleos push action weyland getbyid '[14001992]' -p weyland | |
# Update robot OS | |
cleos push action weyland update '["weyland",14001995,"X99A"]' -p weyland | |
#Remove robot | |
cleos push action weyland remove '["weyland",14001995]' -p weyland |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment