Skip to content

Instantly share code, notes, and snippets.

@DimitarSD
Last active September 9, 2018 08:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DimitarSD/4974eac17e5b65f7760fc929aaaed9e7 to your computer and use it in GitHub Desktop.
Save DimitarSD/4974eac17e5b65f7760fc929aaaed9e7 to your computer and use it in GitHub Desktop.
# 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