View Source Hyperliquid.Api.Exchange.GossipPriorityBid (hyperliquid v0.4.1)
Bid for a gossip priority slot.
Priority slots let a specific IP submit gossip traffic ahead of other peers.
There are two slots, addressed by slot_id 0 or 1.
See: https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/priority-fees
Usage
{:ok, result} = GossipPriorityBid.request(0, "1.2.3.4", 1_000_000)
Summary
Functions
Bid for a gossip priority slot.
Functions
@spec request(non_neg_integer(), String.t(), non_neg_integer(), keyword()) :: {:ok, map()} | {:error, term()}
Bid for a gossip priority slot.
Parameters
slot_id: Priority slot, 0 or 1ip: IPv4 or IPv6 address that should hold the slotmax_gas: Maximum gas to spend on the bidopts: Optional parameters
Options
:private_key- Private key for signing (falls back to config):vault_address- Act on behalf of a vault
Returns
{:ok, response}- Bid result{:error, term()}- Error details
Examples
{:ok, result} = GossipPriorityBid.request(0, "1.2.3.4", 1_000_000)