All services on this page use the authenticated transport and accept the account scope field.
Methods marked stream return () => void and take onEvent (+ optional onOpen / onClose / onError).
client.deposit
| Method | Input → Result | Notes |
|---|---|---|
createAddress(input, options?) | chain + account? → DepositAddress | null | Creates or returns the existing address. |
listAddresses(input?, options?) | chain?, account? → DepositAddress[] |
client.transfers
Ledger transfer history: every balance movement, regardless of cause.
| Method | Input → Result | Notes |
|---|---|---|
list(input, options?) | limit?, direction, time range, transfer-code and ledger filters, pageToken? → { transfers, nextPageToken } | |
subscribe(input) | accountId → stream of transfers | One event per transfer leg; a repeated leg replaces the earlier copy. |
client.internalTransfers
| Method | Input → Result | Notes |
|---|---|---|
create(input, options?) | destination (root / subaccount / smart account), asset, decimal amount → CreateInternalTransferResult | Idempotent: repeat requests return the existing transfer. |
Resolve destinations with client.accounts.resolve(...) or the address book's listTransferDestinations().
client.tradingWithdraws
Durable, signed withdrawal intents out of the Trading venue.
| Method | Input → Result | Notes |
|---|---|---|
createToFunding(input, options?) | asset, decimal amount, destination + signature → CreateTradingWithdrawResult | Stays on Polyester. |
createToExternalChain(input, options?) | asset, gross decimal amount, destination network + address + signature → CreateTradingWithdrawResult | Leaves via the Zipper. |
Each intent embeds a deadline (5 minutes by default, or the optional deadline input), a nonce,
and an idempotency key. Signing options:
walletSigner: the SDK builds its canonical EIP-191 text message and has the user's EOA sign it withpersonal_sign.payloadSignature: you precomputed the signature (API-key / custody infrastructure).
prepareToFunding / prepareToExternalChain sign once and return a PreparedTradingWithdraw with deadline, isExpired(), and submit(options?). Within a minute of the deadline, a
wallet-signed withdrawal signs again on submit; a payload-signed one throws WithdrawDeadlineExpiredError once the deadline passes.
See Withdrawals.
client.autoWithdraw
The account's scheduled auto-withdraw rule and its runs. See Auto-withdraw.
| Method | Input → Result | Notes |
|---|---|---|
getRule(input?, options?) | account? → AutoWithdrawRule | null | null when the account never had a rule. |
setRule(input, options?) | expectedVersion, schedule, destinations (1-32), minUsdValue?, account? → AutoWithdrawRule | Needs a fresh stepUpToken. Stale version: RevisionConflictError. |
disableRule(input, options?) | expectedVersion, account? → AutoWithdrawRule | Needs a fresh stepUpToken. Stale version: RevisionConflictError. |
listRuns(input?, options?) | limit? (0-100, default 20), pageToken?, account? → { runs, nextPageToken } | Newest first. |
Related
- Supported chains, assets, routes, fees, and minimums:
client.zipperandcatalog.zipper. See Market data services and Catalog & precision. - Tracking a deposit/withdrawal across chains:
client.lifecycle. See Deposits & withdrawals. - Guard-signer co-signing for protected actions: Account services.
- On-chain user operations from the smart account:
@polyester/sdk/smart-account. See Client configuration.