TypeScript SDK — Account Services: Withdrawals & Transfers
Withdraw crypto, transfer between accounts, estimate gas fees, and review transfer history. All methods are on client.transfers.
See the API specifications for full request/response schemas and the authentication guide for setup.
Methods
withdrawCryptoFunds
POST /v2/withdraw/{network}/{ticker} · Authenticated
Initiates a cryptocurrency withdrawal. This is a security-sensitive mutation — the request is validated client-side before sending. The SDK enforces:
network,ticker— required stringsaddress— required stringamount— required decimal stringclientTransferId— optional UUIDmemo— optional string
Code
This is a POST mutation — never automatically retried. The optional clientTransferId (UUID) provides withdrawal idempotency: duplicate requests with the same ID do not create additional withdrawals. The destination must be on your approved address list. Amounts are decimal strings, not numbers.
transferBetweenAccounts
POST /v1/account/transfer/{currency} · Authenticated
Transfers funds between accounts within the same master group. The request is validated client-side. The SDK enforces:
currency— required stringsourceAccount,targetAccount— required stringsamount— required decimal stringclientTransferId— optional UUIDv4
Code
Tip: When provided,
clientTransferIdmust be a UUIDv4. It identifies the transfer request; the API documentation does not promise duplicate suppression, so confirm the transfer status before retrying an uncertain request.
getGasFeeEstimation
POST /v2/withdraw/{network}/{ticker}/feeEstimate · Authenticated
Returns an estimated gas fee for a withdrawal without actually executing it.
Code
Tip: Call this before
withdrawCryptoFundsto show users the expected fee. Thefeefield is a number (not a string).monthlyLimitandmonthlyRemainingtrack free withdrawal allowances.
listPastTransfers
POST /v2/transfers · Authenticated
Returns a history of past transfers (deposits, withdrawals, and internal transfers). The response is a bare array of V2Transfer objects.
Code
Tip: The
eidfield in the response may be abigint. The request body accepts optionaltimestamp(bigint/number) for pagination.
getTransactionHistory
POST /v1/transactions · Authenticated
Returns detailed transaction history with filtering support. The response is a wrapper object with a results array. Response fields like eid, tid, orderId, and other IDs may be bigint.
Code
Tip: The
timestamp_nanosrequest field acceptsbigintfor nanosecond-precision filtering. Usecontinuation_tokenfrom the response for pagination. Many response ID fields arebigint— see Data Types.
listCustodyFeeTransfers
POST /v1/custodyaccountfees · Authenticated
Returns custody fee transfers for custody accounts. The request body accepts an optional timestamp field (bigint or number) for filtering. The response is a bare array.
Code
Tip: Fee amounts are decimal strings. Pass
timestampas a bigint or number to filter results — the API returns records on or after the given timestamp (lower bound, forward paging), not backward.
What's next
- Addresses & Deposits — managing deposit and approved withdrawal addresses
- Balances & Account — checking balances
- Request Validation — how client-side validation catches errors early
- Data Types — decimal strings and bigint fields