Get Account Staking Info with the Flow CLI

How to get staking info

Retrieve staking information for the account on the Flow network using Flow CLI.

1
flow accounts staking-info <address>

Example Usage

1
> accounts staking-info 535b975637fb6bee --host access.testnet.nodes.onflow.org:9000
2
3
Account Staking Info:
4
ID: "ca00101101010100001011010101010101010101010101011010101010101010"
5
Initial Weight: 100
6
Networking Address: "ca00101101010100001011010101010101010101010101011010101010101010"
7
Networking Key: "ca00101101010100001011010101010101010101010101011010101010101010ca00101101010100001011010101010101010101010101011010101010101010"
8
Role: 1
9
Staking Key: "ca00101101010100001011010101010101010101010101011010101010101010ca00101101010100001011010101010101010101010101011010101010101010ca00101101010100001011010101010101010101010101011010101010101010"
10
Tokens Committed: 0.00000000
11
Tokens To Unstake: 0.00000000
12
Tokens Rewarded: 82627.77000000
13
Tokens Staked: 250000.00000000
14
Tokens Unstaked: 0.00000000
15
Tokens Unstaking: 0.00000000
16
Node Total Stake (including delegators): 250000.00000000
17
18
19
Account Delegation Info:
20
ID: 7
21
Tokens Committed: 0.00000000
22
Tokens To Unstake: 0.00000000
23
Tokens Rewarded: 30397.81936000
24
Tokens Staked: 100000.00000000
25
Tokens Unstaked: 0.00000000
26
Tokens Unstaking: 0.00000000

Arguments

Address

  • Name: address
  • Valid Input: Flow account address.

Flow account address (prefixed with 0x or not).

Flags

Include Fields

  • Flag: --include
  • Valid inputs: contracts

Specify fields to include in the result output. Applies only to the text output.

Host

  • Flag: --host
  • Valid inputs: an IP address or hostname.
  • Default: 127.0.0.1:3569 (Flow Emulator)

Specify the hostname of the Access API that will be used to execute the command. This flag overrides any host defined by the --network flag.

Network Key

  • Flag: --network-key
  • Valid inputs: A valid network public key of the host in hex string format

Specify the network public key of the Access API that will be used to create a secure GRPC client when executing the command.

Network

  • Flag: --network
  • Short Flag: -n
  • Valid inputs: the name of a network defined in the configuration (flow.json)
  • Default: emulator

Specify which network you want the command to use for execution.

Filter

  • Flag: --filter
  • Short Flag: -x
  • Valid inputs: a case-sensitive name of the result property

Specify any property name from the result you want to return as the only value.

Output

  • Flag: --output
  • Short Flag: -o
  • Valid inputs: json, inline

Specify the format of the command results.

Save

  • Flag: --save
  • Short Flag: -s
  • Valid inputs: a path in the current filesystem

Specify the filename where you want the result to be saved

Log

  • Flag: --log
  • Short Flag: -l
  • Valid inputs: none, error, debug
  • Default: info

Specify the log level. Control how much output you want to see during command execution.

Configuration

  • Flag: --config-path
  • Short Flag: -f
  • Valid inputs: a path in the current filesystem
  • Default: flow.json

Specify the path to the flow.json configuration file. You can use the -f flag multiple times to merge several configuration files.