Skip to content

Commit

Permalink
Support RPC GetFeeRateStatistics
Browse files Browse the repository at this point in the history
  • Loading branch information
eval-exec committed Aug 4, 2024
1 parent b4f527f commit afaaa78
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ type Client interface {
// GetFeeRateStatics Returns the fee_rate statistics of confirmed blocks on the chain
GetFeeRateStatics(ctx context.Context, target interface{}) (*types.FeeRateStatics, error)

// GetFeeRateStatistics Returns the fee_rate statistics of confirmed blocks on the chain
GetFeeRateStatistics(ctx context.Context, target interface{}) (*types.FeeRAteStatistics, error)

////// Experiment
// DryRunTransaction dry run transaction and return the execution cycles.
// This method will not check the transaction validity,
Expand Down
2 changes: 2 additions & 0 deletions types/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,8 @@ type FeeRateStatics struct {
Median uint64 `json:"median"`
}

type FeeRAteStatistics = FeeRateStatics

type TransactionAndWitnessProof struct {
BlockHash Hash `json:"block_hash"`
TransactionsProof *Proof `json:"transactions_proof"`
Expand Down

0 comments on commit afaaa78

Please sign in to comment.