Skip to main content
POST
Set or revoke a maker book delegate

Authorizations

X-API-Key
string
header
required

Body

application/json

Set or clear the delegate on a maker book. A delegate may update and clear the book's quotes but can never deposit, withdraw or close it. Only the book's maker may call this. Omit delegate to revoke.

market
string
default:u8tnfCb1JSSghuNFquQ2beStYgAN1kmd1f1Lhxbaec4
required

Market address.

signer
string
default:GLKCuotKSjPtQhxHmf6q8GUkw6tUZnzs8W5vEbxdaBdK
required

The wallet that signs: the book's maker, or with accountOwner the account's owner or delegate. Existing clients may keep sending it as owner; send one name only.

accountOwner
string | null

The wallet that owns the ArcherAccount this request acts through. With platform it derives the account PDA server-side — you never handle a PDA. Omit for a plain wallet-owned book. Replaces the earlier archerAccount field, which is no longer read.

delegate
string | null

New delegate. Omit or null to revoke the current one.

platform
enum<string> | null
default:self

Platform namespace for accountOwner. Ignored unless accountOwner is set.

Available options:
self,
treadfi
withInstructions
boolean | null
default:false

Also return the unsigned instructions under instructions, for composing your own transaction instead of signing ours. Omitted or false leaves the response exactly as it was.

Response

Unsigned close transaction.

Unsigned tx for deposit / withdraw / close plus the amounts moved (in on-chain lots).

action
enum<string>
required
Available options:
deposit,
withdraw,
close
addressLookupTables
string[]
required
baseLots
integer<int64>
required

Base lots the action moves (the explicit amount withdrawn/deposited). For a withdraw, "all" is resolved server-side to the book's free balance and reported here as that concrete amount. 0 for close.

expiresAt
integer<int64>
required
quoteLots
integer<int64>
required

Quote lots the action moves. Same conventions as baseLots.

transaction
string
required

Base64 unsigned VersionedTransaction.

instructions
object | null

Unsigned instructions, present only when the request set withInstructions.