Withdraw an asset to an address on any supported chain
Pays from the confidential balance by default; confidential: false pays from the legacy public balance, which only a withdrawal or a shield can empty. Both live withdrawals and dry: true previews require X-Grant-Token and Idempotency-Key; a live withdrawal also needs an account policy allowing withdrawal to the destination. An archived, deleted or frozen account, or one whose applied policy does not parse (policy_not_ready), gets no preview, and an asset GET /v1/tokens does not list (unsupported_token) or a recipient that is not a valid address (invalid_address) is refused before any provider call, as a live withdrawal is. Both also return recipient_storage_unregistered (409) when a NEAR recipient lacks storage on the token’s contract. Register the recipient with storage_deposit on that contract, then send again under a new Idempotency-Key. The account’s rules never refuse a preview. It answers with spend (USD value and budget left), fee and warnings. For a confidential bridged withdrawal, including to near when 1Click lists the withdrawn asset on another chain, the fee is the USD value sent minus the USD value of quote.amount_out in the same-symbol destination listing. A bridged fee is null for a public route, when there is no usable amount_out or unique destination listing, when either asset lacks a fresh price, or when the delivery is worth more than the amount sent. For other withdrawals to near, the fee uses estimated_fee when it is zero or fee_token names the withdrawn asset. Otherwise it uses amount minus quote.amount_out in that asset’s units. Warnings list each rule the live withdrawal would fail under its code (policy_action_denied, policy_destination_denied, policy_asset_denied, schedule, USD budget, per-asset limits, actions per hour, policy_usage_unavailable when unreconciled history keeps the limits from being judged, or insufficient_balance with available_amount) beside high_fee (above 5%, only where fee is valued), asset_delivered_as_is (a non-USDC asset to hypercore) and provider_would_refuse (the wallet provider’s own dry run says it would refuse the withdrawal, its reason in detail). Identical previews reuse a result for 60 seconds; an expired preview needs a new key. The API sets no preview cap; each preview that reaches the provider counts toward the wallet’s 1,000 custody operations per rolling 24 hours (provider_limit_reached). NEAR is nep141:wrap.near (near and native are refused with unsupported_token); withdrawn to chain near it always arrives as native NEAR, from either balance. The agent’s account is its confidential balance. It, and the transfers and swaps made from it, live on intents.far, the NEAR Intents confidential deployment on FAR: a permissioned NEAR-protocol chain run by a small validator set with no public RPC. That keeps them off the public NEAR chain. It is access control, not cryptography, and the API cannot prove it: FAR’s operators and Defuse can read confidential state and grant others access, the 1Click solver layer sees each intent in plaintext, shielding and unshielding appear on the public chain, cross-chain deposits and withdrawals are public on their own chains and can be matched by amount and timing, and the agent has one confidential identity, its custody wallet. Wherever X-Grant-Token is required, a public_key grant may send X-Grant-Proof instead (never both): a JWT its key signs for this grant ID and request (URL, method, body and Idempotency-Key). The proof is spent on first use. A retry signs a new proof for the same grant ID and Idempotency-Key. A refused proof reads grant_proof_invalid.