钱包地址监控接口
方便接口形式,快速添加钱包地址
接口URL
https://monitor.foxupay.com/api/addr/add
请求方式
POST
Content-Type
application/json
请求Header参数
参数名 示例值 参数类型 是否必填 参数描述
FOX-API-KEY 11111 String 可从 监控管理 > API Keys 获取
请求Body参数
{"address":"","webhook":""}
参数名 示例值 参数类型 是否必填 参数描述
address - String 需要监控的钱包地址
webhook - String 回调地址
返回数据
{"code":200,"msg":"成功"}
代码示例
shell-curl
curl --request POST \
--url https://monitor.foxupay.com/api/addr/add \
--header 'FOX-API-KEY: 11111' \
--header 'content-type: application/json' \
--data '{"address":"","webhook":""}'
java-okhttp
OkHttpClient client = new OkHttpClient();
MediaType mediaType MediaType= .parse("application/json");
RequestBody body RequestBody mediaType = .create( , "{\"address\":\"\",\"webhook\":\"\"}");
request Request = new Request.Builder()
.url("https://monitor.foxupay.com/api/addr/add")
body.post( )
.addHeader("FOX-API-KEY", "11111")
.addHeader("content-type", "application/json")
.build();
response client requestResponse = .newCall( ).execute();
php-http2
<?php
= http\ lient$client new C ;
= http\ lient\ equest$request new C R ;
= http\ essage\ ody$body new M B ;
->append$body ('{"address":"","webhook":""}');
->setRequestUrl$request ('https://monitor.foxupay.com/api/addr/add');
->setRequestMethod$request ('POST');
->setBody$request ($body);
->setHeaders$request ([
=> 'FOX-API-KEY' '11111',
=> 'content-type' 'application/json'
]);
->enqueue ->send$client ($request) ();
= ->getResponse$response $client ();
->getBodyecho $response ();
python3
http.clientimport
conn http.client.HTTPSConnection( )= "monitor.foxupay.com"
payload = "{\"address\":\"\",\"webhook\":\"\"}"
headers {=
: ,'FOX-API-KEY' "11111"
: 'content-type' "application/json"
}
conn.request( , , payload, headers)"POST" "/api/addr/add"
res conn.getresponse()=
data res.read()=
(data.decode( ))print "utf-8"