GET
Get signed trade proof
The FundOffer names the quote signer; the PayTake’s LockPayment for this fill carries both amounts. Each agreement comes with its EIP-712 typed data, digest, signer and signature. The maker rate is receive / supply; the taker paid ceil(amount_out × receive / supply). A pool held on Lighter or Aster has no FundOffer (maker_authorization null): LaMarge attests its quote signer. A take paid from Lighter or Aster has no PayTake: payment carries the signed transfer. A delivery is named, not proven: read it on the venue. LaMarge’s verifier script checks a downloaded proof without the API; it needs the LaMarge repository, available on request:
It checks the signatures, the quote signer’s delegation, the route, the amounts and the binding between agreements, against the reviewed escrow deployments, ESCROW_PROOF_DEPLOYMENTS from @lamarge/sdk/protocol. A quote signed by an ERC-1271 contract, on a fill settled before deliveries, needs the maker chain’s RPC URL as a second argument: the verifier then checks the maker lock transaction’s calldata and receipt in a canonical block. Check the other settlement transactions separately.

Path Parameters

id
string<uuid>
required

Response

Signed maker and taker agreements.

destination
enum<string>
required

Where a take delivers on to: venue, into the taker's account linked there; wallet, by plain transfer to recipient's address on to's escrow chain, in that chain's wallet token (chain.wallet in GET /v1/venues; on Polygon native USDC converted from pUSD), to any address a wallet delivery accepts.

Available options:
venue,
wallet
received
object | null
required

A wallet delivery's receipt; null for a venue delivery.

version
enum<integer>
required

2 for a trade with a taker fee, which taker_fee and taker_fee_venue give.

Available options:
1,
2
id
string<uuid>
required
from
string
required

A venue id from GET /v1/venues.

to
string
required

A venue id from GET /v1/venues.

amount_in
string
required

Decimal base units of the venue's token (decimals in GET /v1/venues), below 2^256: with 6 decimals, "1000000" is 1 token.

Pattern: ^[0-9]{1,78}$
amount_out
string
required

Decimal base units of the venue's token (decimals in GET /v1/venues), below 2^256: with 6 decimals, "1000000" is 1 token.

Pattern: ^[0-9]{1,78}$
swap_id
string
required
Pattern: ^0x[0-9a-fA-F]{64}$
order_id
string
required
Pattern: ^0x[0-9a-fA-F]{64}$
sequence
integer
required
quote_index
integer
required

The priced quote's position in the maker's signed set.

Required range: x >= 0
maker_owner
string
required

Any case accepted; responses are lowercase except inside typed data and signed messages.

Pattern: ^0x[0-9a-fA-F]{40}$
payer
string
required

Any case accepted; responses are lowercase except inside typed data and signed messages.

Pattern: ^0x[0-9a-fA-F]{40}$
maker_recipient
string
required

Any case accepted; responses are lowercase except inside typed data and signed messages.

Pattern: ^0x[0-9a-fA-F]{40}$
taker_recipient
string
required

Any case accepted; responses are lowercase except inside typed data and signed messages.

Pattern: ^0x[0-9a-fA-F]{40}$
settled_at
string<date-time>
required

RFC 3339 UTC (Z or +00:00), fractional seconds optional.

maker
object
required
maker_authorization
object | null
required

The owner's FundOffer; null for in-venue inventory, whose maker authority LaMarge attests.

delivery
object | null
required

The delivery of a fill to Lighter or Aster; null otherwise.

taker
object | null
required

The payer's PayTake; this trade's payment is its LockPayment with this swap_id. Null for a take paid from Lighter or Aster (see payment).

payment
object | null
required

The taker's executed transfer, for a take paid from Lighter or Aster; null otherwise.

transactions
object[]
required
funding
enum<string>
default:venue

venue: the linked account on from, withdrawing a shortfall from its margin. wallet: only the payer's wallet and available balance, in the escrow token; the master needs no account on from. Fixed for retries.

Available options:
venue,
wallet
taker_fee
string

Version 2: the fee the swap_id carries (fees).

Pattern: ^[0-9]{1,78}$
taker_fee_venue
string

Version 2: the venue whose token taker_fee is in.