• 官网
  • 中文
  • English
  • Russian
  • More language
Show / Hide Table of Contents
  • NEO Basics
    • About NEO
    • NEO Whitepaper
    • NEO Contract Whitepaper
    • Consensus
      • Consensus Whitepaper
      • Consensus Diagram
  • NEO Node
    • Introduction
    • NEO-GUI
      • Installing the Client
      • Wallet
      • Transactions
      • Registering and Distributing Assets
      • Interacting with Smart Contracts
      • Election and Voting
      • Other Features
    • NEO-CLI
      • Publishing from source
      • Installation
      • SeedList
      • NEO-CLI Command line
      • API Reference
        • v2.9.0 and later
          • dumpprivkey
          • getaccountstate
          • getassetstate
          • getbalance
          • getbestblockhash
          • getblock
          • getblock
          • getblockcount
          • getblockhash
          • getblockheader
          • getblocksysfee
          • getconnectioncount
          • getcontractstate
          • getnewaddress
          • getrawmempool
          • getrawtransaction
          • getstorage
          • gettxout
          • getpeers
          • getvalidators
          • getversion
          • getwalletheight
          • invoke
          • invokefunction
          • invokescript
          • listaddress
          • sendfrom
          • sendrawtransaction
          • sendtoaddress
          • sendmany
          • validateaddress
        • v2.8.0
          • dumpprivkey
          • getaccountstate
          • getapplicationlog
          • getassetstate
          • getbalance
          • getbestblockhash
          • getblock
          • getblock
          • getblockcount
          • getblockhash
          • getblocksysfee
          • getconnectioncount
          • getcontractstate
          • getnewaddress
          • getrawmempool
          • getrawtransaction
          • getstorage
          • gettxout
          • getpeers
          • getvalidators
          • getversion
          • invoke
          • invokefunction
          • invokescript
          • listaddress
          • sendfrom
          • sendrawtransaction
          • sendtoaddress
          • sendmany
          • validateaddress
        • v2.7.6
          • dumpprivkey
          • getaccountstate
          • getapplicationlog
          • getassetstate
          • getbalance
          • getbestblockhash
          • getblock
          • getblock
          • getblockcount
          • getblockhash
          • getblocksysfee
          • getconnectioncount
          • getcontractstate
          • getnewaddress
          • getrawmempool
          • getrawtransaction
          • getstorage
          • gettxout
          • getpeers
          • getvalidators
          • getversion
          • invoke
          • invokefunction
          • invokescript
          • listaddress
          • sendfrom
          • sendrawtransaction
          • sendtoaddress
          • sendmany
          • validateaddress
    • NEO Plug-ins
    • NEO-Python
  • NEO Network
    • Test Network
    • Private Chain
      • Build a private chain
      • Build a private chain in an easy way
    • Local Blockchain
    • Synchronizing the blockchain faster
    • Network Protocol
  • NEO Utilities
    • NEO SDK
      • About NEO SDK
      • Common Uses
      • Account
      • Wallet
      • Transaction Construction
    • Blockchain Explorers
  • Smart Contract
    • Introduction
    • Quick Start
      • Getting Started
        • Using C# (Windows)
        • Using C# (macOS)
        • Using C# (ubuntu)
        • Using Java
        • Using Python
      • Limitations
      • Unit Testing
      • Deploying and Invoking Smart Contracts
    • Reference
      • API Reference
        • NEO
        • System
      • Framework
        • .NET Framework
          • NEO
            • Account
            • Asset
            • Block
            • Blockchain
            • Contract
            • Enrollment
            • Header
            • Runtime
            • Storage
            • StorageContext
            • Transaction
            • TransactionAttribute
            • TransactionInput
            • TransactionOutput
            • TriggerType
            • Validator
          • System
            • ExecutionEngine
    • Samples and Tutorials
      • Hello World
      • Lock Contract
      • Domain (Domain Name System)
      • Contract Authentication Tutorial
      • Deploying a Lock Contract
    • Parameters and Return Values
    • Contract Triggers
    • System Fees
  • FAQ
  • Document for Exchange Developers
    • v2.9.4
    • v2.9.3
    • v2.9.2
    • v2.9.1
    • v2.9.0
    • v2.8.0
    • v2.7.6

listaddress Method

Lists all the addresses in the current wallet.

Note

You need to open the wallet in the NEO-CLI node before invoking this method.

Example

Request body:

{
  "jsonrpc": "2.0",
  "method": "listaddress",
  "params": [],
  "id": 1
}

Response body:

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": [
        {
            "address": "ASL3KCvJasA7QzpYGePp25pWuQCj4dd9Sy",
            "haskey": true,
            "label": null,
            "watchonly": false
        },
        {
            "address": "AV2Ai7PXcNbjTSeKgWqsDEjLaEAJZpytru",
            "haskey": true,
            "label": null,
            "watchonly": false
        }
    ]
}

Response description:

address:The address in the wallet.

watchonly: Indicates whether it is a watch only address.

  • Improve this Doc
Back to top Copyright © 2014-2018 NEO