## 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.Deposit Address Reindex
Reindex transactions for a deposit address
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:
/transactions/deposit-address/reindex:
post:
description: >-
Re-checks the balances of a previously-registered deposit address and
queues a withdrawal for any currency with a non-zero balance. Useful
when funds were sent to a deposit address but the normal indexer flow
did not pick them up. For a Deposit Address V2 address, queues a search
for recent deposit transactions instead, at most once per hour for each
currency.
parameters:
- schema:
type: string
in: header
name: x-api-key
required: false
description: Optional API key for authentication and higher rate limits.
requestBody:
content:
application/json:
schema:
type: object
properties:
chainId:
type: number
description: Chain ID the deposit address was originally registered on.
depositAddress:
type: string
description: The deposit address to reindex.
sweep:
type: boolean
description: Deprecated. No longer supported on this endpoint.
targetChainId:
type: number
description: >-
Chain ID to reindex on, when different from `chainId`. Use
this if funds landed on a chain other than the one the
deposit address was registered on. Defaults to `chainId`.
currency:
type: string
description: >-
Address of a specific currency to reindex. Defaults to
checking every depositable currency on the chain.
txHash:
type: string
pattern: ^(0x)?[0-9a-fA-F]{64}$
description: >-
Deposit Address V2 only. Transaction to reindex. Without it,
the endpoint finds recent deposit transactions itself.
required:
- chainId
- depositAddress
required: true
responses:
'200':
description: Default Response
content:
application/json:
schema:
type: object
properties:
message:
type: string
description: Human-readable summary of the reindex outcome.
triggeredCurrencies:
type: array
description: Currencies for which a withdrawal was queued.
items:
type: object
properties:
currency:
type: string
description: Currency address.
symbol:
type: string
description: Currency symbol.
balance:
type: string
description: >-
Balance found at the deposit address, in the
currency's smallest unit.
checkedCurrencies:
type: number
description: Total number of currencies whose balance was checked.
failedCurrencies:
type: number
description: Number of currencies whose balance check failed.
'400':
description: Default Response
content:
application/json:
schema:
type: object
properties:
message:
type: string
description: Reason the request was rejected.
'403':
description: Default Response
content:
application/json:
schema:
type: object
properties:
message:
type: string
description: >-
The caller is not permitted to reindex this deposit
address.
'404':
description: Default Response
content:
application/json:
schema:
type: object
properties:
message:
type: string
description: >-
No deposit address was found for the given `chainId` and
`depositAddress`.
'409':
description: Default Response
content:
application/json:
schema:
type: object
properties:
message:
type: string
description: Deposit Address V2 only. The transaction is still pending.
'429':
description: Default Response
content:
application/json:
schema:
type: object
properties:
message:
type: string
description: The deposit address was reindexed too recently.
'503':
description: Default Response
content:
application/json:
schema:
type: object
properties:
message:
type: string
description: Transient failure.
This documentation is built and hosted on Mintlify, a developer documentation platform.