Connecting
Reading configuration

Route value from an X identity into any supported asset.

These endpoints are the ones this deployment serves. Where an endpoint needs a key it says which one and answers 503 until it is set.

Record deposit

POST/api/v1/deposits

Request

{
  "tx": "0x085d251ede4d29ea14887bcd00bd850fc3148411037377fc05b24ee6a7f70fcd"
}

Response

{
  "ok": true,
  "duplicate": false,
  "deposit": {
    "tx": "0x085d251ede4d29ea14887bcd00bd850fc3148411037377fc05b24ee6a7f70fcd",
    "x_handle": "relayuser",
    "eth_amount": "0.05",
    "amount": "119.83",
    "eth_usd": 2396.5,
    "round_id": "18446744073709562891",
    "price_stale": false,
    "block": 64162143
  },
  "claim": { "id": "clm_6f1c2a0b9d4e7a1c83", "source": "deposit", "status": "available" }
}
No key. The only field read from the body is tx. The recipient, the amount and the handle are read from chain: the transfer has to be addressed to RELAY_WALLET, the receipt has to be a success, and the calldata has to decode to the UTF-8 bytes of xrelay:@handle. A refusal names itself in reason: unknown-tx, not-mined, reverted, wrong-recipient, no-memo, bad-prefix, bad-handle, zero-value. Posting the same hash again returns the first claim with duplicate: true.

Environment

X_CLIENT_ID, X_CLIENT_SECRET, X_REDIRECT_URI, SESSION_SECRETSign in with X
BLOB_READ_WRITE_TOKENClaim ledger
RELAY_API_KEYClaim creation
RELAY_WALLETDeposit address, relays scope
RELAY_WALLET_KEYClaim settlement
RELAY_MAX_TX_USDPer-transaction cap, default 500
RELAY_MAX_DAY_USDPer-day cap, default 5000
RELAY_WEBHOOK_SECRETWebhook delivery

Stock tokens are tokenized debt securities issued by Robinhood Assets (Jersey) Limited; balances routed through X Relay are ledger claims until settled on chain.

Not available to US persons.