Tip#

async starknet_py.net.tip.estimate_tip(client: Client, block_hash: int | str | Literal['l1_accepted', 'pre_confirmed', 'latest'] | None = None, block_number: int | Literal['l1_accepted', 'pre_confirmed', 'latest'] | None = None) int#

Estimates the transaction tip by taking the median of all V3 transaction tips in the specified block. If no block is provided, the latest block is used.

Parameters:
  • client – Client instance.

  • block_hash – Block’s hash or literals “l1_accepted”, “latest” or “pre_confirmed”

  • block_number – Block’s number or literals “l1_accepted”, “latest” or “pre_confirmed”`