Estimate-tx-fee
Estimate the transaction fee for current layer 1 or layer 2 asset transfer.
POST
/api/estimate-tx-fee
Headers
Name | Value |
---|---|
Content-Type |
|
Authorization |
|
Request Body
Name | Type | Required | Description |
---|---|---|---|
wallet_id | string | true | The end user's wallet id |
amount | int | false | the amount of satoshi to send in case of type 1 |
type | int | true | 1 layer 1 btc transfer; 2 layer 2 taproot asset transfer |
fee_rate | int | true | satoshi cost per byte |
Response Body
Name | Type | Description |
---|---|---|
tx_fee | int | estimated tx_fee for this transaction |
Request Demo
Response Demo
Last updated