我对 BlockChain API 响应有疑问。从钱包中获取地址时,地址用双引号括起来,如下所示。如何去掉引号?
“1Dgyv8Qz1nkrJddoyLBepv1RUXSDqCBCdp”
代码:
$resp = file_get_contents($blockchain_receive_root . "v2/receive?key=" . $my_api_key . "&gap_limit=".$gap_limit. "&callback=" . urlencode($callback_url) . "&xpub=" . $my_xpub);
$response = json_decode($resp);
print json_encode($response->address);