get_next_address
get_next_address
调用
请求参数
- wallet_id:钱包ID
- new_address:是否创建新地址
响应结果
get_next_address
调用返回一个JSON对象,主要包含如下字段:
- address:返回的地址
- success:是否成功
- wallet_id:钱包ID
示例代码
请求:
curl --insecure \
--cert ~/.chia/mainnet/config/ssl/wallet/private_wallet.crt \
--key ~/.chia/mainnet/config/ssl/wallet/private_wallet.key \
-d '{"wallet_id": 1, "new_address":true}' \
-H "Content-Type: application/json" \
-X POST \
https://localhost:9256/get_next_address
响应:
{
"address": "xch155596a60ua24z9a86evdupnput83aqk6shstww38h882u659rjksaq4vx5",
"success": true,
"wallet_id": 1
}