Skip to main content
You sign your ladder and send it over a WebSocket. Biconomy writes it onchain and pays the gas.

Connect and subscribe

One signer per connection. Ladders for several chains can share it.

Messages

Rewrite sends the whole ladder on every update. Reprice sends the ladder once, then a single price number on every update. Rewrite sends the whole ladder on every update. Reprice sends the ladder once, then a single price number on every update. Rewrite sends the whole ladder on every update. Reprice sends the ladder once, then a single price number on every update. Rewrite sends the whole ladder on every update. Reprice sends the ladder once, then a single price number on every update. In Reprice mode each step prices at the anchor minus its discount.

Common fields

Exact structs and wire formats are in the Message reference.

Nonces and expiry

A nonce at or below the last accepted one returns STALE_NONCE. Unix milliseconds work as nonces.

Runnable client

Reprice mode on Base Sepolia: offsets once per direction, then an anchor per direction every second. Replace yourPrice() with your engine’s price in raw units.
For Rewrite, sign PriceLadder (levels of { size, price }, primaryType: "PriceLadder") on every tick and send it as type: "price-ladder". A client that samples a pricing curve into a ladder is in curve-maker-reference.ts. Each direction of a pair is a separate ladder.

Common errors

Full list in the Message reference.

Limits