From 96dea168fe9e6da1a73c97014ff6943a64591168 Mon Sep 17 00:00:00 2001 From: Jan Musil Date: Wed, 29 May 2024 18:34:23 +0200 Subject: [PATCH] ALL-7238 - BCH remove estimatesmartfee --- .../rpc-bch/rpc-bch-estimatesmartfee.md | 90 ------------------- 1 file changed, 90 deletions(-) delete mode 100644 v1.0/RPC Nodes/rpc-utxo/rpc-bch/rpc-bch-estimatesmartfee.md diff --git a/v1.0/RPC Nodes/rpc-utxo/rpc-bch/rpc-bch-estimatesmartfee.md b/v1.0/RPC Nodes/rpc-utxo/rpc-bch/rpc-bch-estimatesmartfee.md deleted file mode 100644 index 4605633..0000000 --- a/v1.0/RPC Nodes/rpc-utxo/rpc-bch/rpc-bch-estimatesmartfee.md +++ /dev/null @@ -1,90 +0,0 @@ ---- -title: "estimatesmartfee" -slug: "rpc-bch-estimatesmartfee" -category: "6620f7e31ea673003624a8ce" -excerpt: "BCH RPC" -hidden: false -metadata: - description: "BCH RPC" - image: [] - keywords: "bch, rpc" - robots: "index" -createdAt: "Wed Mar 06 2024 10:35:44 GMT+0000 (Coordinated Universal Time)" -updatedAt: "Sat Apr 06 2024 13:09:05 GMT+0000 (Coordinated Universal Time)" ---- - - - -### How to use it - - - -```typescript -// yarn add @tatumio/tatum - -import { TatumSDK, BitcoinCash, Network } from '@tatumio/tatum' - -const tatum = await TatumSDK.init({network: Network.BITCOIN_CASH}) - -const result = await tatum.rpc.estimateSmartFee(20) - -await tatum.destroy() // Destroy Tatum SDK - needed for stopping background jobs -``` - - - -### Overview - -The `estimatesmartfee` method provides an estimated fee rate for a transaction to be confirmed within a certain number of blocks. The estimation is based on recent transactions in the network. - -This method can be useful for users or applications trying to decide on an appropriate fee for their transactions, based on the desired confirmation speed. - -### Parameters - -The `estimatesmartfee` method accepts the following parameters: - -- `conf_target`: An integer representing the number of blocks within which the transaction should be confirmed. -- `estimate_mode` _(optional)_: A string that determines the estimation mode. Possible values are "UNSET", "ECONOMICAL", and "CONSERVATIVE". Default is "CONSERVATIVE". - -### Return Object - -The `estimatesmartfee` method returns an object containing the following fields: - -- `feerate`: A decimal number representing the estimated fee rate/kB. -- `blocks`: An integer representing the number of blocks within which the transaction is expected to be confirmed. - -### JSON Examples - -Request example: - -{% code overflow="wrap" lineNumbers="true" %} - -```json -{ - "jsonrpc": "2.0", - "method": "estimatesmartfee", - "params": [20], - "id": 1 -} -``` - -{% endcode %} - -Response example: - -{% code overflow="wrap" lineNumbers="true" %} - -```json -{ - "result": { - "feerate": 0.00017258, - "blocks": 20 - }, - "error": null, - "id": 1 -} -``` - -{% endcode %} - -\\