## Documentation Index Fetch the complete documentation index at: https://docs.relay.link/llms.txt Use this file to discover all available pages before exploring further.
## Agent Instructions To quote bridges and swaps, look up chains and tokens, or track Relay transactions from an agent, use the Relay MCP server: npx -y @relayprotocol/relay-mcp. It is read-only and does not sign or broadcast transactions. Setup: https://docs.relay.link/resources/developing-with-ai.md For Relay Protocol's trust model, security architecture, and audits, see https://docs.relay.link/references/protocol/security.md. For address screening, see https://docs.relay.link/security/transaction-screening.md.Request Withdrawal
Prepare or execute a user-triggered withdrawal from the Relay Depository
How do programmatic withdrawals work?
[!NOTE] Call this endpoint twice per withdrawal: first withoutsignatureto prepare (returns thenonce, validatedamount, and anyadditionalDatato sign), then with thenonceand ownersignatureto execute (returns ajobId).chainIdandownerChainIdare protocol chain slugs, not numeric ids. These endpoints power relay.link/withdraw and are not yet a versioned API surface.
OpenAPI
openapi: 3.0.3
info:
title: Cross-chain solver
version: 1.0.0
servers:
- url: https://api.relay.link
description: Mainnet API
- url: https://api.testnets.relay.link
description: Testnet API
security: []
paths:
/withdrawals/request:
post:
requestBody:
content:
application/json:
schema:
type: object
required:
- chainId
- currency
- amount
- ownerChainId
- owner
- recipient
properties:
chainId:
type: string
minLength: 1
currency:
type: string
minLength: 1
amount:
type: string
pattern: ^[0-9]+$
ownerChainId:
type: string
minLength: 1
owner:
type: string
minLength: 1
recipient:
type: string
minLength: 1
nonce:
type: string
additionalData: {}
signature:
type: string
required: true
responses:
'200':
description: Default Response
This documentation is built and hosted on Mintlify, a developer documentation platform.