Skip to main content

getnewaddress Method

Creates a new address.

note

Before you can invoke this method you must:

  1. Install the plugin RpcServer

  2. Call the RPC method openwallet to open the wallet first.

Exception#

  • -302, No opened wallet.

Example#

Request body:

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

Response body:

{    "jsonrpc": "2.0",    "id": 1,    "result": "NeMDdPDC29BfayYF7xNvnCSfCq9Drh1xKX"}

Response Description:

Returns the newly created address.