This repository has been archived by the owner on Oct 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(BUX-149): documentation of fee quotes (#12)
- Loading branch information
1 parent
3d7f23c
commit e78219a
Showing
3 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,39 @@ | ||
package broadcast | ||
|
||
// PolicyQuoteResponse is the response returned by the GetPolicyQuote method. | ||
type PolicyQuoteResponse struct { | ||
// Miner is the URL of the miner that returned the policy quote. | ||
Miner string `json:"miner"` | ||
// Policy is a detailed policy of the miner. | ||
Policy PolicyResponse `json:"policy"` | ||
// Timestamp is the timestamp of the policy quote response received. | ||
Timestamp string `json:"timestamp"` | ||
} | ||
|
||
// FeeQuote is the response returned by the GetFeeQuote method. | ||
type FeeQuote struct { | ||
// Miner is the URL of the miner that returned the fee quote. | ||
Miner string `json:"miner"` | ||
// MiningFee is expressed by number of satoshis per number of bytes. | ||
MiningFee MiningFeeResponse `json:"miningFee"` | ||
// Timestamp is the timestamp of the fee quote response received. | ||
Timestamp string `json:"timestamp"` | ||
} | ||
|
||
type PolicyResponse struct { | ||
// MaxScriptSizePolicy is the maximum number of bytes of the script in a single transaction. | ||
MaxScriptSizePolicy int64 `json:"maxscriptsizepolicy"` | ||
// MaxTxSigOpsCountPolicy is the maximum allowed number of signature operations in a single transaction | ||
MaxTxSigOpsCountPolicy int64 `json:"maxtxsigopscountspolicy"` | ||
// MaxTxSizePolicy is the maximum size in bytes of a single transaction. | ||
MaxTxSizePolicy int64 `json:"maxtxsizepolicy"` | ||
// MiningFee is expressed by number of satoshis per number of bytes. | ||
MiningFee MiningFeeResponse `json:"miningFee"` | ||
} | ||
|
||
type MiningFeeResponse struct { | ||
// Bytes is the number of bytes per which a number of satoshis is charged as transaction fee. | ||
Bytes int64 `json:"bytes"` | ||
// Satoshis is the number of satoshis charged as transaction fee per the number of bytes. | ||
Satoshis int64 `json:"satoshis"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters