Skip to content

API ReferenceShare

Endpoints

Share

Share cards (PNG and HTML) for swaps and PnL.

Base URLhttps://api.lane.markets/v1local instance: http://localhost:3000/v1

1200x630 card of a Lane swap

GET/v1/share/swap/{tx}.png

Path parameters

  • txstringrequired

Responses

200PNG

404Not a Lane swap

Request
curl "https://api.lane.markets/v1/share/swap/….png"

1200x630 card of a wallet's PnL

GET/v1/share/pnl/{address}.png

Path parameters

  • addressaddressrequired

Responses

200PNG

Request
curl "https://api.lane.markets/v1/share/pnl/0x7D29d8047B905000459c0E80c34a26CeedcB47b2.png"

Page to post on X (og:image = the swap card), redirects to the app

GET/v1/share/swap/{tx}

Path parameters

  • txstringrequired

Responses

200HTML

Request
curl "https://api.lane.markets/v1/share/swap/…"

Page to post on X (og:image = the PnL card), redirects to the app

GET/v1/share/pnl/{address}

Path parameters

  • addressaddressrequired

Responses

200HTML

Request
curl "https://api.lane.markets/v1/share/pnl/0x7D29d8047B905000459c0E80c34a26CeedcB47b2"
lane.markets · Make the most of every move.