將交易新增至客戶
将已导入交易批量绑定到客户。
Authorizations
API-KeystringRequired
Path parameters
customer_idstringRequiredExample:
你系统中的客户 ID。
Customer123Body
Responses
200
响应。即使 HTTP 状态码为 200,code 非 0 也表示业务错误。
application/json
codeintegerOptional
该请求的状态码。关于所有可能出现的 code 和 message,请查看:https://docs.compliance.phalcon.blocksec.com/api-documentation/introduction/error-messages。
msgstringOptional
该请求的 message。关于所有可能出现的 code 和 message,请查看:https://docs.compliance.phalcon.blocksec.com/api-documentation/introduction/error-messages。
401
鉴权失败。API-Key 请求头缺失或无效。
429
超出调用频率限制。请降低请求频率后重试。
post/customers/{customer_id}/transactions
POST /phalcon/compliance/v2/customers/{customer_id}/transactions HTTP/1.1
Host: api.blocksec.com
API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 110
{
"transactions": [
{
"txHash": "0xa62d240bdc962236c0ef8312eb2a7b897b00b7ba409066b0d9bd06c1c7621708",
"chainId": 1
}
]
}{
"code": 0,
"msg": "Success",
"data": {
"customerId": "Blacklist",
"transactionCount": 1,
"addedTransactions": [
{
"chainId": 1,
"txHash": "0x647b39a082e1090d241018b14fe8ba20f0067ab9adfca85b1abad443dc05914e"
}
]
}
}最後更新