Package com.swmansion.starknet.helpers
Class Tip
-
- All Implemented Interfaces:
public final class Tip
-
-
Method Summary
Modifier and Type Method Description final static Uint64
estimateTip(Provider provider, Felt blockHash)
Estimate the transaction tip by taking the median of all V3 transaction tips in the specified block. final static Uint64
estimateTip(Provider provider, BlockTag blockTag)
Estimate the transaction tip by taking the median of all V3 transaction tips in the specified block. final static Uint64
estimateTip(Provider provider, Integer blockNumber)
Estimate the transaction tip by taking the median of all V3 transaction tips in the specified block. final static Uint64
estimateTip(Provider provider)
Estimate the transaction tip by taking the median of all V3 transaction tips in the latest block. -
-
Method Detail
-
estimateTip
final static Uint64 estimateTip(Provider provider, Felt blockHash)
Estimate the transaction tip by taking the median of all V3 transaction tips in the specified block.
- Parameters:
provider
- a provider used to interact with StarknetblockHash
- the block hash to estimate the tip for
-
estimateTip
final static Uint64 estimateTip(Provider provider, BlockTag blockTag)
Estimate the transaction tip by taking the median of all V3 transaction tips in the specified block.
- Parameters:
provider
- a provider used to interact with StarknetblockTag
- the block tag to estimate the tip for
-
estimateTip
final static Uint64 estimateTip(Provider provider, Integer blockNumber)
Estimate the transaction tip by taking the median of all V3 transaction tips in the specified block.
- Parameters:
provider
- a provider used to interact with StarknetblockNumber
- the block number to estimate the tip for
-
estimateTip
final static Uint64 estimateTip(Provider provider)
Estimate the transaction tip by taking the median of all V3 transaction tips in the latest block.
- Parameters:
provider
- a provider used to interact with Starknet
-
-
-
-