Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 507 Bytes

getnewaddress.md

File metadata and controls

35 lines (24 loc) · 507 Bytes

getnewaddress Method

Creates a new address.

  1. Install the plugin RpcServer
  2. Call the RPC method openwallet to open the wallet first.

Example

Request body:

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

Response body:

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

Response Description:

Returns the newly created address.