@somnia-chain/markets-sdk


@somnia-chain/markets-sdk / index / PerpWalletLinkTarget

Interface: PerpWalletLinkTarget

Defined in: packages/sdk/src/trade.ts:956

How a linked-wallet consent write finds its LinkedWalletRegistry — the resolution triple every one of the four registry writes shares.

Supply ONE of the three. registry is used as given. Otherwise the SDK reads getLinkedWalletRegistry() off the bank, because the bank is what decides which registry is authoritative — a registry nobody armed is inert. pool resolves the bank first.

A bank holding no registry throws NotConfiguredError: the rail is dormant on that deployment. Pass registry to reach a registry anyway; the consent writes still work, they just fund nothing until the bank is armed.

Extended by

Properties

registry?

optional registry?: `0x${string}`

Defined in: packages/sdk/src/trade.ts:958

The LinkedWalletRegistry. Skips resolution entirely.


marginBank?

optional marginBank?: `0x${string}`

Defined in: packages/sdk/src/trade.ts:960

MarginBank address — its getLinkedWalletRegistry() is read (never cached).


pool?

optional pool?: `0x${string}`

Defined in: packages/sdk/src/trade.ts:962

A PerpPool — its marginBank() is read (and cached), then the registry.


gas?

optional gas?: bigint

Defined in: packages/sdk/src/trade.ts:968

Gas ceiling for this tx.

Default

TraderConfig.gas (10,000,000)