From a77dfb92a140d4dbf6f5d9ba26a144712045f0c4 Mon Sep 17 00:00:00 2001 From: Tim McMackin Date: Thu, 1 Aug 2024 12:04:20 -0400 Subject: [PATCH] octez-client: add page (#13325) Co-authored-by: spageektti Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> --- pages/common/octez-client.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pages/common/octez-client.md diff --git a/pages/common/octez-client.md b/pages/common/octez-client.md new file mode 100644 index 000000000..882f904f2 --- /dev/null +++ b/pages/common/octez-client.md @@ -0,0 +1,32 @@ +# octez-client + +> Interact with the Tezos blockchain. +> More information: . + +- Configure the client with a connection to a Tezos RPC node such as : + +`octez-client -E {{endpoint}} config update` + +- Create an account and assign a local alias to it: + +`octez-client gen keys {{alias}}` + +- Get the balance of an account by alias or address: + +`octez-client get balance for {{alias_or_address}}` + +- Transfer tez to a different account: + +`octez-client transfer {{5}} from {{alias|address}} to {{alias|address}}` + +- Originate (deploy) a smart contract, assign it a local alias, and set its initial storage as a Michelson-encoded value: + +`octez-client originate contract {{alias}} transferring {{0}} from {{alias|address}} running {{path/to/source_file.tz}} --init "{{initial_storage}}" --burn_cap {{1}}` + +- Call a smart contract by its alias or address and pass a Michelson-encoded parameter: + +`octez-client transfer {{0}} from {{alias|address}} to {{contract}} --entrypoint "{{entrypoint}}" --arg "{{parameter}}" --burn-cap {{1}}` + +- Display help: + +`octez-client man`