Sign Contract Order - BTC Chain
Request
POST https://custody-example-url/custody/v1/api/projects/{b_id}/wallets/{wallet_code}/signatures
Parameters
Field | Type | Description |
---|---|---|
b_id | String | Business line ID |
wallet_code | String | Defi Wallet ID |
order_no | String | Order number |
description Optional |
String | Description Size: 50 |
address | String | Address |
signature_version | String | Signature type Allowed values: signMessage, signPsbt, signPsbts |
payload | JsonNode | Signature information Click here to view the formats for BTC chain |
chain | String | Cactus chain name Allowed Value: Refer to Cactus Network Symbol (For API) column in Supported Token |
[!tip|style:flat] BTC Chain Signature Types
signature_version Description signMessage
Message signing only signPsbt
Transaction signing signPsbts
Multiple transaction signing
Request Example
{
"address": "tb1pkhduwswuk7qhx77djyt730dp77tjrc8ullftfyr2deaa635d55ns04zext",
"signature_version": "signMessage",
"payload": {"text":"hello world~"},
"chain": "BTC",
"order_no": "TX00000000002",
"description": ""
}
[!NOTE|style:flat] To obtain the signed result, use the Get Transaction Details API and provide the
orderNo
. The result will be returned in thesigned_data
field.
Response Example
{
"code": 0,
"message": "",
"successful": true,
"data": {
"OrderNo": "D00000000001"
}
}