Skip to main content
POST
Withdraw from an ArcherAccount

Authorizations

X-API-Key
string
header
required

Body

application/json

Provide mint + amount and/or lamports.

signer
string
required

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

Example:

"GLKCuotKSjPtQhxHmf6q8GUkw6tUZnzs8W5vEbxdaBdK"

amount
string

Token amount, decimal string in the mint's units.

Example:

"1.5"

lamports
integer<int64>

Lamports to withdraw to the owner, leaving the account rent-exempt.

mint
string

Token to withdraw, to the owner's own token account.

Example:

"So11111111111111111111111111111111111111112"

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.