add an api for estimating gas prices

This commit is contained in:
Jeromy
2020-04-22 09:37:38 -07:00
parent c64dbfcf40
commit 2a97045317
4 changed files with 29 additions and 5 deletions
+4
View File
@@ -118,3 +118,7 @@ func (a *MpoolAPI) MpoolGetNonce(ctx context.Context, addr address.Address) (uin
func (a *MpoolAPI) MpoolSub(ctx context.Context) (<-chan api.MpoolUpdate, error) {
return a.Mpool.Updates(ctx)
}
func (a *MpoolAPI) MpoolEstimateGasPrice(ctx context.Context, priority uint64) (types.BigInt, error) {
return a.Mpool.EstimateGasPrice(ctx, priority)
}