Endpoints
Share
Share cards (PNG and HTML) for swaps and PnL.
Base URL
https://api.lane.markets/v1local instance: http://localhost:3000/v11200x630 card of a Lane swap
GET
/v1/share/swap/{tx}.pngPath parameters
txstringrequired
Responses
200PNG
404Not a Lane swap
curl "https://api.lane.markets/v1/share/swap/….png"1200x630 card of a wallet's PnL
GET
/v1/share/pnl/{address}.pngPath parameters
addressaddressrequired
Responses
200PNG
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
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
curl "https://api.lane.markets/v1/share/pnl/0x7D29d8047B905000459c0E80c34a26CeedcB47b2"