For the complete documentation index, see llms.txt. This page is also available as Markdown.

將交易新增至客戶

将多笔交易批量绑定到客户

post

将已导入交易批量绑定到客户。

Authorizations
API-KeystringRequired
Path parameters
customer_idstringRequired

你系统中的客户 ID。

Example: Customer123
Body
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。

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"
      }
    ]
  }
}

最後更新