Class Tip

  • All Implemented Interfaces:

    
    public final class Tip
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Request<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 Request<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 Request<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 Request<Uint64> estimateTip(Provider provider) Estimate the transaction tip by taking the median of all V3 transaction tips in the latest block.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • estimateTip

         final static Request<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 Starknet
        blockHash - the block hash to estimate the tip for
      • estimateTip

         final static Request<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 Starknet
        blockTag - the block tag to estimate the tip for
      • estimateTip

         final static Request<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 Starknet
        blockNumber - the block number to estimate the tip for
      • estimateTip

         final static Request<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