Skip to main content
POST
Set the account's delegate

Authorizations

X-API-Key
string
header
required

Body

application/json
delegate
string
required

The wallet to authorize. It may then quote, trade and manage maker books for the account, but never withdraw.

maxBuilderFeePpm
integer
required

Ceiling on the builder fee any swap funded by this account may carry, in ppm of the quote notional (max 10000). 0 forbids any builder fee.

Example:

0

signer
string
required

The wallet that signs. Must be the account's owner: a delegate cannot re-delegate. Existing clients may keep sending it as owner; send one name only.

Example:

"GLKCuotKSjPtQhxHmf6q8GUkw6tUZnzs8W5vEbxdaBdK"

platform
enum<string>
default:self

Which platform's account. A wallet holds one account per platform, each independently delegated.

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

An unsigned transaction for the owner to sign.

action
enum<string>
required
Available options:
create,
setDelegate,
revokeDelegate,
deposit,
withdraw
addressLookupTables
string[]
required
archerAccount
string
required

The ArcherAccount PDA the action targets.

transaction
string
required

Base64-encoded unsigned transaction for the owner to sign.

instructions
object | null

Unsigned instructions, present only when the request set withInstructions.