mirror of
https://github.com/aljazceru/cyphernode.git
synced 2026-01-08 15:35:44 +01:00
Added addresstype when calling getnewaddress.
This commit is contained in:
@@ -554,10 +554,13 @@ Proxy response:
|
||||
|
||||
### Get a new Bitcoin address from spending wallet (called by application)
|
||||
|
||||
Calls getnewaddress RPC on the spending wallet. Used to refill the spending wallet from cold wallet (ie Trezor).
|
||||
Calls getnewaddress RPC on the spending wallet. Used to refill the spending wallet from cold wallet (ie Trezor). Will derive the default address type (set in your bitcoin.conf file, p2sh-segwit if not specified) or you can supply the address type like the following examples.
|
||||
|
||||
```http
|
||||
GET http://cyphernode:8888/getnewaddress
|
||||
GET http://cyphernode:8888/getnewaddress/bech32
|
||||
GET http://cyphernode:8888/getnewaddress/legacy
|
||||
GET http://cyphernode:8888/getnewaddress/p2sh-segwit
|
||||
```
|
||||
|
||||
Proxy response:
|
||||
@@ -568,6 +571,12 @@ Proxy response:
|
||||
}
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"address":"tb1ql7yvh3lmajxmaljsnsu3w8lhwczu963tvjfzpj"
|
||||
}
|
||||
```
|
||||
|
||||
### Spend coins from spending wallet (called by application)
|
||||
|
||||
Calls sendtoaddress RPC on the spending wallet with supplied info.
|
||||
|
||||
Reference in New Issue
Block a user