From 4861569ab69cb25b7ebe66758680f4285285cb55 Mon Sep 17 00:00:00 2001 From: Evgeniy Stratonikov Date: Tue, 20 Jul 2021 13:25:35 +0300 Subject: [PATCH] docs: add `query tx` info Signed-off-by: Evgeniy Stratonikov --- docs/cli.md | 12 ++++++++++++ docs/consensus.md | 4 ++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/docs/cli.md b/docs/cli.md index c3b182c49..5f0939e8b 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -464,6 +464,18 @@ You can also vote for candidates if you own NEO: ./bin/neo-go wallet candidate vote -a NMe64G6j6nkPZby26JAgpaCNrn1Ee4wW6E -w wallet.json -r http://localhost:20332 -c 03cecd63d7d8120c3b194c3b2880dd4aafe1475c57e40c852872d7305615258140 ``` +### Querying transaction status +`query tx` provides convenient wrapper over RPC calls to query transaction status. +``` +./bin/neo-go query tx --rpc-endpoint http://localhost:20332 aaf87628851e0c03ee086ff88596bc24de87082e9e5c73d75bb1c740d1d68088 +Hash: aaf87628851e0c03ee086ff88596bc24de87082e9e5c73d75bb1c740d1d68088 +OnChain: true +BlockHash: fabcd46e93b8f4e1bc5689e3e0cc59704320494f7a0265b91ae78b4d747ee93b +Success: true +``` +`OnChain` is true if transaction was included in block and `Success` is true +if it was executed successfully. + ### NEP-17 token functions `wallet nep17` contains a set of commands to use for NEP-17 tokens. diff --git a/docs/consensus.md b/docs/consensus.md index c5231ba91..1ddd12e0b 100644 --- a/docs/consensus.md +++ b/docs/consensus.md @@ -91,8 +91,8 @@ use. This command will create and send appropriate transaction to the network and you should then wait for it to settle in a block. If all goes well it'll end -with "HALT" state and your registration will be completed. You can make -`getapplicationlog` RPC requests to see transaction status or +with "HALT" state and your registration will be completed. You can use +`query tx` command to see transaction status or `getnextblockvalidators` to see if your candidate was added. ### Voting