Query some data required for signature, Includes fee rates and other information required for BTC transaction
POST https://www.okx.com/api/v5/waas/transaction/get-sign-info
Parameter | Type | Required | Description |
---|---|---|---|
chainId | String | Yes | Unique identifier of the chain |
addrFrom | String | Yes | From address for the transaction |
addrTo | String | Yes | To address for the transaction |
txAmount | String | Yes | Transaction amount |
extJson | Json Object | No | Extended parameters |
Parameter | Type | Description |
---|---|---|
normalFeeRate | String | Normal fee rate |
maxFeeRate | String | Max fee rate |
minFeeRate | Object | Min fee rate |
inscriptionOutput | String | Inscription output size |
minOutput | String | Min output |
normalCost | String | Normal cost |
maxCost | Boolean | Max cost |
minCost | Object | Min cost |
curl --location --request POST 'https://www.okx.com/api/v5/waas/transaction/get-sign-info' \
--header 'Content-Type: application/json' \
--header 'OK-ACCESS-PROJECT: 86af********d1bc' \
--header 'OK-ACCESS-KEY: 37c541a1-****-****-****-10fe7a038418' \
--header 'OK-ACCESS-SIGN: leaV********3uw=' \
--header 'OK-ACCESS-PASSPHRASE: 1****6' \
--header 'OK-ACCESS-TIMESTAMP: 2023-10-18T12:21:41.274Z' \
--data '{
"addrFrom": "bc1qkcg8puz0y5m6gl8lw2ah27q932yd229v8sfhhxp8tfpwugz5ukwspuyst5",
"addrTo": "bc1qkcg8puz0y5m6gl8lw2ah27q932yd229v8sfhhxp8tfpwugz5ukwspuyst5",
"txAmount": "31600000000000000",
"chainId": 0,
"extJson": {
}
}'
{
"code": 0,
"msg": "",
"data": [{
"normalFeeRate": 27,
"maxFeeRate": 35,
"minFeeRate": 22,
"inscriptionOutput": "546",
"minOutput": "1500",
"normalCost": "1800",
"maxCost": "3600",
"minCost": "600"
}]
}