Skip to content

Latest commit

 

History

History
71 lines (57 loc) · 1.71 KB

README.md

File metadata and controls

71 lines (57 loc) · 1.71 KB

MinerId extension fields

BRFC title authors version
62b21572ca46 minerIdExt-feeSpec nchain 0.1

Block info

This extension enables the miner to publish default fee rates. This is informational only as the Merchant API is the mechanism for real-time querying of miners for current fee rates.

Note: this fee refers to the miner's default, publicly available fee rates (i.e. calling MAPI without a token or user authentication).

Location

The blockInfo object should be located under the extensions field of the dynamic-CD

{
  // basic MinerId fields

  "extensions": {
    "feeSpec": {
        "defaultFee": array
    }
  }
}
field function
defaultFee default fee rate as specified in brfc-misc/feespec

Example

{
  // basic MinerId fields

  "extensions": {
    "feeSpec": {
        "fees": [
            {
                "feeType": "standard",
                    "miningFee": {
                        "satoshis": 1,
                        "bytes": 1
                    },
                    "relayFee": {
                        "satoshis": 1,
                        "bytes": 10
                    }
            },
            {
                "feeType": "data",
                "miningFee": {
                    "satoshis": 2,
                    "bytes": 1000
                },
                "relayFee": {
                    "satoshis": 1,
                    "bytes": 10000
                }
            }
        ]
        }
    }
  }
}