Expand description
The protocol: pure, I/O-free checks of every server payload against the caller’s terms and
the pinned deployments, the pins themselves, and the payloads they rebuild, under the names
the TypeScript SDK’s @lamarge/sdk/protocol gives them, in snake case.
A check returns a Verified payload, rebuilt from the checked terms and pinned domains, or
a VerificationError whose kind and detail name the
rule that failed. The Session flows run these checks before every
signature; a caller signing with its own key runs them itself, and signs only what
Verified::typed_data or Verified::message gives.
Re-exports§
pub use crate::deployments::AT_ONCE_SEND_MARGIN_SECONDS;pub use crate::deployments::AT_ONCE_SIGNING_SECONDS;pub use crate::deployments::CHAINS;pub use crate::deployments::Chain;pub use crate::deployments::ENVIRONMENT_SLOTS;pub use crate::deployments::ESCROW;pub use crate::deployments::ESCROWS as ESCROW_DEPLOYMENTS;pub use crate::deployments::Escrow as EscrowDeployment;pub use crate::deployments::LIGHTER_MAX_TAKER_FEE;pub use crate::deployments::MAKER_TIMEOUT_SECONDS;pub use crate::deployments::PermitDomain;pub use crate::deployments::ROUTE_PAY_WINDOW_SECONDS;pub use crate::deployments::Slots as EnvironmentSlots;pub use crate::deployments::TAKER_TIMEOUT_SECONDS;pub use crate::deployments::UNLIMITED_ALLOWANCE;pub use crate::deployments::VENUE_DOMAINS;pub use crate::deployments::VenueDomain;pub use crate::deployments::WALLET_SWAP_MIN_BPS;pub use crate::deployments::decimal_units;pub use crate::deployments::is_venue_settled;pub use crate::deployments::venue_step;pub use crate::deployments::venue_units;pub use crate::flows::BridgeTerms as BridgeExpectation;
Structs§
- Aster
Transfer - A transfer between accounts, read from its
msg. - Bridge
Transactions - A wallet-origin bridge’s transactions: an
approveofamountto the depository, needed only when the allowance is short, then the deposit. - Chain
- A venue’s settlement chain: the escrow chain of an escrow venue, the signing chain of a venue settled inside itself.
- Environment
Slots - What an environment registers on venues: registering another environment’s slot replaces it, so environments use distinct Aster agent names and Lighter API key indexes.
- Escrow
Deployment - A reviewed escrow proxy (v5 UUPS), never an implementation or an address the API supplies.
- Escrow
Lock - An escrow lock as
locks(owner, offerId, swapId)returns it. - Escrow
Withdrawal Preparation - An escrow withdrawal as
POST /v1/escrow/withdraw/prepareanswers it. - Fee
- A take’s taker fee: charged on top of the payment, or out of what the maker delivers when the taker pays inside a venue.
- Lighter
Transfer - An internal transfer between Lighter accounts, as its API key signs it.
- Lines
Authority - The quote identity publishing, its quote signer, its pools as last read, and the maker’s payment recipient on each venue it buys on.
- Lines
Request - The caller’s lines a preparation is checked against.
- Maker
Authority - Who a maker preparation may name: the linked owner, the delegated identity and its quote signer, the deployment’s operator, and the identity’s existing pool on the venue, if any.
- Maker
Intent - The caller’s capital addition a maker preparation is checked against.
- Payment
Refund Preparation - A refund consent as
POST /v1/fills/{id}/refund/prepareanswers it. - Permit
Domain - An EIP-2612 permit domain’s name and version.
- Plan
Terms - The caller’s terms a transfer’s funding plan is checked against.
- Proof
Deployment - A reviewed v5 escrow proxy a proof may name, retired ones included: never an implementation or
an address the API supplies.
EscrowDeploymentlists only the active ones, those new signatures go to. - Quote
Intent - The terms of one quote, as the maker set them.
- Relay
Endpoint - A Relay endpoint: Relay’s chain name and id, the currency as orders write it, and the decimals on each side.
- Relay
Pins - Relay’s pinned contracts, from Relay’s chains and verified sources, never from an answer.
- SwapFee
- The fee a swap id carries and where the escrow takes it.
- Take
Intent - The caller’s terms a take is checked against.
- Take
Reads - What the flow read for the check: Lighter’s owners of the accounts
lighter_accountsnames, and for a take from wallet funds, a fresh read of them (excluding this take). - Transfer
TxInfo - A sent transfer read back from its
tx_info, and its owner’s signature (L1Sig). - Unreadable
Transfer - A
tx_infothat is not a plain transfer: the field that failed. - Venue
Deposits - The contracts the router’s calls credit a Polymarket, GMX or Aster account through.
- Venue
Domain - The signing domain of a venue settled inside itself.
- Venue
Transfer - A venue’s own transfer out of an account, read from what its owner signs.
- Verified
- A payload the checks verified for
signer, signable untilnot_after(Unix seconds): what is signed is the payload the checks rebuilt from checked terms and pinned domains, never the server’s JSON. Only the crate’s checks make one.
Enums§
- Delivery
- Where a take delivers on its receiving venue, as the caller states it: never taken from the API.
- RelayVm
- How a Relay chain names accounts.
- Transfer
Kind - What a venue transfer does.
Constants§
- ACCOUNT_
MINIMUMS - The least an account accepts as a deposit, in its venue’s base units: Polymarket’s 5 pUSD. A bridge credits at least this much; other venues have no minimum.
- ASTER_
CHAIN_ ID - BSC: the signing chain of withdrawals and agent approvals, and the default withdrawal chain.
- ASTER_
TRANSFER_ CHAIN_ ID - The chain id of transfers between accounts.
- AT_
ONCE_ SEND_ MARGIN_ SECONDS - A take signed at once with its withdrawal is accepted until this long before its
pay_by. - AT_
ONCE_ SIGNING_ SECONDS - Left before that cutoff for each request of a take signed at once.
- CHAINS
- Each venue’s pinned chain, token, decimals and permit domain. A venue the API enables but that is not pinned here is not traded.
- COLLATERAL_
ROUTE - A taker’s transfer moves between collateral routes.
- ENVIRONMENT_
SLOTS - Each environment’s Aster agent name and Lighter API key index.
- ESCROW
- Production’s escrow proxy, the same address on HyperEVM and Polygon. A deployment’s escrows
are those
ESCROWSpins for its environment. - ESCROW_
DEPLOYMENTS - The active escrows, one per environment and escrow chain. Retired proxies are not pinned: nothing new is signed for them.
- ESCROW_
PROOF_ DEPLOYMENTS - Every proxy a proof may name: the active ones of each environment, then the retired ones.
- FEE_
ON_ DELIVERY - The escrow’s tag of a fee taken out of the delivery.
- FEE_
ON_ PAYMENT - The escrow’s tag of a fee taken on the payment: a swap id starting with it carries the fee in its next ten bytes.
- GMX_
TRANSFER_ ROUTER - GMX’s
MultichainTransferRouteron Arbitrum. - HYPERLIQUID_
BRIDGE - USDC’s
HyperCoresystem address: aSendAssetthere credits the sender’s own HyperEVM address. - LIGHTER_
API - Lighter’s public API, read directly so account data does not depend on LaMarge.
- LIGHTER_
CHAIN_ ID - Lighter’s L2 chain id, which its transfers and quote sets sign.
- LIGHTER_
MAX_ TAKER_ FEE - The most Lighter charges a taker’s account on top of a transfer: 1 USDC.
- MAKER_
TIMEOUT_ SECONDS - Seconds a quote set outlasts its
valid_until(FILL_MAKER_TIMEOUT), and the latestt1. - MAX_
FEE_ BPS - The most a fee takes of the total it is part of, in basis points, as the escrow bounds it.
- RELAY
- Relay (relay.link), the external bridge LaMarge plans and tracks: an order is accepted only if its hash, contracts, solver, recipients and amounts match what these pins and the caller’s terms rebuild.
- RELAY_
WALLETS - Wallet tokens a bridge can start from or deliver to.
- RETIRED_
V5_ DEPLOYMENTS - Retired v5 proxies: trusted for existing proofs, never new signatures.
- ROUTE_
PAY_ WINDOW_ SECONDS - The most seconds to a route’s second take’s
pay_bywhen signed at once. - TAKER_
API_ KEY - The index of production’s Lighter API key, which sends a taker’s transfers.
- TAKER_
API_ KEYS - The Lighter API key indexes of every environment.
- TAKER_
TIMEOUT_ SECONDS - The latest a take’s payment refunds,
t2: the escrow’sMAX_LOCK_DURATION. - UNLIMITED_
ALLOWANCE - The allowance a permit grants, once.
- USDC_
ASSET - A taker’s transfer moves USDC.
- VENUE_
DEPOSITS - The contracts a bridge credits a venue account through.
- VENUE_
DOMAINS - Signing domains of venues without escrow: Lighter’s L2 chain id and zkLighter contract, BSC and Aster’s vault. Quote sets of inventory held there are signed in them; nothing is ever sent to them.
- WALLET_
FEE_ ON_ DELIVERY FEE_ON_DELIVERY’s wallet twin.- WALLET_
FEE_ ON_ PAYMENT FEE_ON_PAYMENT’s wallet twin, which a wallet delivery’s swap id always carries, fee zero included: the escrow pays it by plain transfer, never into a venue.- WALLET_
SWAP_ MIN_ BPS - The least share of a Polygon wallet delivery’s pUSD its recipient receives in native USDC.
Functions§
- aster_
amount - Base units of USDT as Aster takes them: a decimal amount of six decimals at most, rounded up
so the recipient never gets less.
Noneabove2^256 - 1. - aster_
client_ id - The
clientTranIdof a fill’s transfer: its id in 32 lowercase hex digits. Aster moves nothing more for a repeated one. - aster_
request Message{msg}in Aster’s signing domain atchain_id: its transfers’ chain, or BSC’s for agent approvals and withdrawals.- aster_
send - Aster’s transfer of
amountUSDT, whole millionths, fromaccount’s Spot wallet torecipient’s, underid(letters and digits, 64 at most);nonce: microseconds, 16 digits. - aster_
transfer - Reads an Aster transfer between accounts: its request at Aster’s transfer chain, whose
msgis exactlyasset=USDT&amount=…&toAddress=…&clientTranId=…&nonce=…&user=…(Differs,aster transfer). - aster_
withdrawal - Aster’s withdrawal from
accountto its own address onchain_id(BSC, Arbitrum or Ethereum):amountarrives,feeon top, both whole millionths of USDT, the fee 2 USDT at most.nonce: microseconds, 16 digits. Aster relays it in an envelope the account signs second. - bridge_
authorization - Relay’s nonce mapping the
HyperCorepayer signs: it tiesnonceto the order before theSendAssetwith that nonce reaches Relay. - bridge_
expectation - What a bridge of
amount_in(origin base units) must do for the moverequest:BridgeTerms::for_move.BridgeTerms::from_walletstarts it from the payer’s wallet on the origin chain instead. - bridge_
send_ asset - The
HyperCoreSendAssetofamount(6 decimals) to Relay’s depository, noncenonce, in Hyperliquid’s signing domain. It leaves from the bridge’ssource_dex: the payer’s perps ("") or, for a unified account,"spot"; anything else, or none, is refused (Differs,sourceDex). - bridge_
transactions - The deposit of
amount(origin units) for orderidfrompayer’s walletorigin. - can_
refund_ payment - Whether the maker of
fill, abandoned inside its venue, may give the taker’s locked payment back beforet2. From an escrow offer, the operator returns it at once. - check_
aster_ approval - Aster’s agent approval:
Message{msg}at BSC’s chain id approvingenvironment’s LaMarge agent forowner, for a year, trading perps only (no spot, no withdrawal), from a few narrow public addresses if it lists any, under the prepared nonce (reference), within a minute ofnow. - check_
aster_ request - Checks an Aster request (
Message{msg}in Aster’s signing domain atchain_id: its transfers’ chain, or BSC’s for agent approvals and withdrawals) and returns itsmsg. - check_
aster_ take_ intent check_takeof a take paid from Aster: the payer’s transfer of its fill’s amount to the maker’s account under the fill id, its nonce far enough ahead for LaMarge to relay it and within Aster’s window when relayed. A take paid from another venue is refused (Unsupported,venue).- check_
aster_ transfer - Checks that an Aster
transferpaysfill’samount_in, as Aster carries it in six decimals rounded up, from its payer to its maker’s recipient, under the fill’s id (Differs,aster transfer). - check_
bridge_ nonce - A
HyperCorebridge’s nonce, which the payer’s send spends: a millisecond timestamp under 30 minutes old and at most 5 minutes ahead ofnow_ms. - check_
bridge_ order - Checks Relay’s
order(protocol.v2.orderData) againstexpectatnow(Unix seconds) and returns its id: its hash, solver, input, refunds, output, recipient, floor and calls are the ones the pins andexpectrebuild. - check_
close_ orders - Checks a close (
POST /v1/closes) of orders amongidsbymasteratnow: oneCloseOrdersin the HyperEVM escrow’s domain (LaMarge’s operator authorization), by and for the master, of distinct asked orders, within the hour. - check_
deadline - Checks that
deadline(Unix seconds) is afternowand at mostsecondsahead of it, with a 30-second clock margin (Stale,deadline). - check_
escrow_ proof_ typed - Checks
typed, a quote set, a funding or a payment onvenue, as a proof: exact EIP-712 field types, LaMarge’s domain onvenue’s chain, and a contract amongESCROW_PROOF_DEPLOYMENTS. Returns that deployment. - check_
escrow_ typed - Checks a request to sign on
venuebefore any wallet prompt: its exact EIP-712 types and a domainenvironmentpins. AQuoteSet,FundOffer,PayTakeorCloseOrdersis signed in the environment’s escrow on the venue’s chain (a venue settled inside itself signs quote sets only, in its own domain); aPermitin the domain of the venue’s token, to that escrow. Any other primary type is refused (Differs,primaryType). Stricter than the TypeScript SDK’scheckEscrowTyped, which accepts any pinned environment’s escrow: the escrow isenvironment’s. - check_
escrow_ withdrawal - Checks one
escrow_withdrawalof exactlyamountbyorder’s owner, in the domain ofchain’s escrow as the API lists it (a pinned one), to the margin whento_margin, else to the owner’s wallet, good for an hour at most fromnow. - check_
fee - That a fill’s fee is the one its swap id carries, taken where its payment says, within what
the taker accepted: on the maker’s price from an escrow payment (
on_deliveryfalse), on what the offer delivers when the taker pays inside a venue. Without consent, no fee. - check_
funding_ plan - Checks a transfer’s funding plan (
TransferIntent.funding_plan,Nonewhen the server could not plan: itsfunding_plan_errorsays why) atnow: what the transfer will ask the payer to sign is at most a permit, a margin withdrawal and the payment, in that order, onfrom‘s chain, forterms’ amount, observed within two minutes. - check_
lighter_ take_ intent check_takeof a take paid from Lighter: the owner message of the one transfer paying exactly its fill from the payer’s linked account. A take paid from another venue is refused (Unsupported,venue).- check_
link_ challenge - Checks the message
addresssigns to be linked onvenueundermaster: its six lines, naming all three,nonceandexpires_at, valid ten minutes at most fromnow. Returns the text to sign withpersonal_sign, signable until it expires. - check_
login_ challenge - Checks a sign-in challenge (
POST /v1/auth/challenge) foraddressand the apporiginatnow: the exact EIP-4361 text the server writes, its nonce and expiry, issued no later than two minutes ahead, not expired more than two minutes ago, valid ten minutes at most. Returns the text to sign withpersonal_sign, signable until two minutes after expiry. - check_
maker_ intent - Checks a maker preparation (
POST /v1/maker/prepare) for a delegated quote identity atnowand returns its payloads, into_signorder: theFundOfferof all the capital asked, its deposit only the part the pool’s available balance does not cover, from the asked source, and for venue funding one margin move of that deposit. A delegated identity’s quotes are never re-signed here, so anyquote_setrequest is refused. - check_
minimum_ received - A wallet take’s
minimum_receivedis the least its recipient gets of the wallet token for all it delivers, as the escrow bounds it; a venue take’s is none. - check_
payment_ refund - Checks the one
refund_paymentconsent offill, signed by its payment’s beneficiary in a pinned escrow’s domain on the paying chain, good untilt2at most and an hour fromnow. - check_
permit - An EIP-2612 permit in the pinned domain of
venue’s token, byowner, of an unlimited allowance toenvironment’s escrow on that chain, its deadline within ten minutes. - check_
prepared_ lines - Checks a lines preparation (
POST /v1/quotes/lines/prepare) and returns one payload per draft, in draft order. The echoed lines are the caller’s, each live pool of the identity with stock signs exactly the set its line builds (receiving where the caller buys, at the caller’s prices, to the caller’s recipients), and only pools without stock are cancelled. Omitting a receiving venue is allowed; changing a price, stock, minimum or recipient is not. Each payload is signable until a second beforevalid_until, refused oncenowreaches it. - check_
prepared_ quote - A draft’s terms and its one quote set:
quotes(built from the draft’s own quotes, one each) exactly,sizeas its budget, valid untilvalid_untiland settling an hour and a second later, at a sequence above the pool’s last and at most2^53 - 1. - check_
refund_ locks - Checks the payment lock of
fill, undelivered and delivered inside its venue: it still refundsfill.amount_into its payer att2. - check_
registry - Checks
chain, as the API lists it forvenue, against the pins: chain id, token, decimals, permit domain, wallet token and escrow (any environment’s). Returns the environment of an escrow venue’s escrow;Nonefor a venue settled inside itself, whose listed escrow is its signing domain’s contract. - check_
route_ intent - Checks a route’s second transfer, as LaMarge made it, against the route’s first (
first, whosethennames the route’s end): it continues the first from its destination, paid by the hubhubto the route’s recipient, spends no more thandelivers(what the first take delivers on the hub venue) and at least 1% of the plan, at the planned price, and withdraws nothing (Changed,destinationoramount). - check_
send - Checks a send (
POST /v1/withdrawals/preparewith a recipient) of exactlyamountfromsigner’s account onvenuetorecipient, another account of the same venue, atat. A Polymarket wallet shows only the operation’s hash: it is rebuilt from the typed data’sop, whose terms are checked. WithDex::Xyz, a standard Hyperliquid account’s trade.xyz balance pays it instead of its perps. - check_
setup_ kind - Checks that setup
stepasks its one kind of signature: apermit, Aster’s agent approval (agent) or a Lighter API key registration (api_key). - check_
signed_ quote - Checks a quote set to sign for
pool(its id, venue, owner and quote signer): exactly therequestedquotes, in order (each position is the index a fill names), atsequence, settling byexpires_at, in the pool’s pinned signing domain; signable beforevalid_until, its last admission time (Unix seconds). - check_
take - Checks a prepared take (
POST /v1/takes) againstintentatnowand returns its one payment to sign: aPayTakefrom an escrow venue, the Lighter owner message of a take paid from Lighter, or the Aster transfer request of a take paid from Aster. - check_
take_ intent check_takeof a take paid from an escrow venue (Hyperliquid, Polymarket, GMX): its onePayTake. A take paid from another venue is refused (Unsupported,venue).- check_
transfer - Checks a send (
send) or a withdrawal ofamountbysignertodestinationonvenueatnow:check_sendorcheck_withdrawal. A Polymarket operation (Op) is only a send.dexas either takes it. - check_
withdrawal - Checks a withdrawal of exactly
amountfromsigner’s account onvenuetodestinationatat, as the TypeScript SDK’scheckWithdrawaldoes: on Hyperliquid to the signer’s own HyperEVM address through USDC’s bridge, on Polymarket todestinationwithout fee, and on Aster anActionwithdrawing to the signer’s own address on BSC,amountarriving there after Aster’s fee of 2 USDT at most, its nonce within a minute. WithDex::Xyz, a standard Hyperliquid account’s trade.xyz balance pays it instead of its perps; any other venue refuses a dex. - decimal_
text unitsof a token withdecimalsas the decimal text venues sign, six decimals at most, exactly:"5","5.25". Refused (Differs,amount) when it needs more decimals.- decimal_
units - A venue’s decimal token amount (
"12.5", six decimals at most) in base units of a token withdecimals, exactly.Nonefor any other text. - decimals_
of - The decimals of
venue’s token; an unpinned venue is refused (Unsupported,venue). - destination_
calls - The calls the router runs to credit
recipient’s account onvenue(Polymarket, GMX, Aster) with its whole balance of the venue’s token, at leastleast, then sweep what any call left torecipient’s wallet. - direct_
pair - Whether a pool on
supplymay quote takers paying onpaying: another venue, and never between the two venues settled inside themselves. - fee_on
⌊amount × bps / 10 000⌋, exactly and without overflow (bps ≤ 10 000).- fill_
memo - The memo naming a fill: its id’s 16 bytes, then 16 zero bytes.
- from_
relay_ units - A Relay amount in the endpoint’s own units, rounded down.
- gmx_
transfer_ out transferOut((token, amount, 0, 0x0, 0x, (0x0, 0, [], 0))), with no bridge provider and no bridge fee:amountof Arbitrum USDC from the sender’s GMX Account to the sender’s own address, never elsewhere.- hash_
to_ fp5 - Hashes field elements to five, without padding: each block of eight overwrites the rate.
- hyperliquid_
send_ asset - Hyperliquid’s
SendAssetofamountUSDC from an account’s main balance: torecipient, another account, or without one to the signer’s own HyperEVM address.noncein milliseconds, 2^53 − 1 at most;source_dex""perps,spota unified account,xyza standard account’s trade.xyz. - is_
pinned_ escrow - Whether
venue’s requests may namecontractas their escrow: on an escrow venue, any pinned deployment of its chain, whichever environment’s; on a venue settled inside itself, its one pinned signing domain. - is_
venue_ settled - Whether
venuesettles inside itself (no escrow): Lighter and Aster. - lamarge_
domain - The escrow’s domain (
LaMarge, version 1) onchain_id: a pinned escrow, or a venue’s signing domain. - lighter_
accounts - The Lighter account indexes whose owners
check_takeneeds: a delivery into Lighter’s account, and a Lighter payment’s two accounts. - line_
receive - What
stockbase units sold onsupplyatsellcost onpayingbought atbuy, rounded up for the maker;Nonefor an unpinned venue or beyond2^256 - 1. - minimum_
received - The least a wallet delivery of
amount_outtotopays its recipient, as the escrow checks it: on Polygon⌈amount_out × 9 995 / 10 000⌉, elsewhere all of it. - op_hash
- An operation’s
data: keccak256 of itsMessagePack, over the exact strings sent. - part_
floor - A part’s floor, in destination units: its share of the move’s
min_outat the move’s rate, rounded up.Nonefor an empty move or above2^256 - 1. - permit_
domain - The permit domain of
chain’s token, if it has one. - polymarket_
send - Polymarket’s internal transfer of
amountpUSD fromaccounttorecipient’s Perps account;tsin milliseconds,saltandts2^53 − 1 at most. Itsoptravels with the typed data: a wallet is shown only the hash of it. - polymarket_
withdrawal - Polymarket’s withdrawal of
amountpUSD fromaccount’s Perps margin torecipienton Polygon, without fee;tsin seconds.saltandtsare 2^53 − 1 at most, as a JSON number keeps them exactly. - price_
within - The largest price whose fee on top fits
budget:P + ⌊P × bps / 10 000⌋ ≤ budget, as the server plans it. - read_
transfer_ tx_ info - Reads a sent transfer from its
tx_info(Lighter’s JSON), refusing transaction attributes. - read_
venue_ transfer - Reads a withdrawal or send out of an account on
venuefrom its typed data, refusing any field, domain, token or chain the venue’s own transfer does not carry. It judges no recipient, amount or time: the caller compares them with what it asked for. - registration_
message - The text an owner signs to register API key
api_keywithpublic_keyonaccount. - relay_
endpoint - The Relay endpoint of
endpointas an origin (origin) or a destination; refused for anything LaMarge does not bridge. - relay_
order_ id - The order’s id: Relay’s EIP-712 hash of
orderas Relay serves it, Lighter’s accounts hashed as 16-byte indexes. - require_
signing_ domains - Checks that every escrow request among
itemsis signed in a pinned domain, whichever environment’s: afundorpay_takein a pinned escrow, aquote_setin a pinned escrow or a venue’s own signing domain. A request of another kind is not looked at. Refused withDeployment,escrow, at the request’s index. - signable_
until - Until when, in Unix seconds, a reserved take can still be signed: its earliest
pay_by, sooner for an Aster transfer whose nonce must stay ahead, unless LaMarge issues that request again right before it is signed (aster_reissue). - signed_
at - When a withdrawal or send was signed, from each venue’s own unit: what a stored signature is checked again at before it is submitted again.
- swap_
fee - The fee
swap_idcarries; zero on the payment, into a venue, without a tag. - take_
fee - The fee a take from
frompays at its pair’spair_bps: none without the taker’s consent,max_fee_bps. - take_
payment_ kind - The request kind paying a take from
from. - take_
payments - The payments of a
PayTake’s typed data, as the server wrote them: one to eight, each with exactlyLockPayment’s fields (Differs,payments). Their values are checked bycheck_take. - to_
relay_ units amountin the endpoint’s own units, in Relay’s (HyperCore: × 100, exact).- transfer_
hash - The 40-byte hash a transfer’s API key signs on chain
chain_id, also its Lighter transaction hash. Transaction attributes are not part of it: only the owner’s message binds the memo. - transfer_
message - The text the owner signs with
personal_signfortransferto another owner’s account on chainchain_id. - venue_
step - One millionth of
venue’s token, in base units: venues carry six decimals at most.Nonefor an unknown venue. - venue_
units valuerounded up to whole millionths ofvenue’s token: what the venue moves for it.Nonefor an unknown venue or above2^256 - 1.- withdrawal_
cost - What a withdrawal on
venuemoves out of the account for its amount to arrive, as the TypeScript SDK’swithdrawalCostreads it: on Hyperliquid and Polymarket the signed amount, on Aster the signed amount less Aster’s fee (what arrives on BSC).
Type Aliases§
- Lighter
Owners - Owners of Lighter accounts by index, as Lighter’s public API answered (never LaMarge’s record of a link): an account whose owner a check needs and does not find here is refused.