Skip to content

Instantly share code, notes, and snippets.

@DimitarSD DimitarSD/test.sh
Last active Sep 9, 2018

Embed
What would you like to do?
# 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
You can’t perform that action at this time.