POST https://solver-relay-v2.chaindefuser.com/rpc
quote
Request price quotes from connected solvers. The Message Bus forwards the request to all solvers, waits up to 3000ms, and returns all available options.Only one of
exact_amount_in or exact_amount_out should be provided, not both.Asset to trade from (e.g.,
nep141:ft1.near)Asset to trade to (e.g.,
nep141:ft2.near)Amount of input token for exchange
Amount of output token for exchange
Minimum validity time for offers (in milliseconds). Shorter times may yield better prices.
Example request
Example request
Example response
Example response
quote_hash- Quote response hashdefuse_asset_identifier_in- Asset to trade fromdefuse_asset_identifier_out- Asset to trade toamount_in- Input amount (exact if specified, proposed otherwise)amount_out- Output amount (exact if specified, proposed otherwise)expiration_time- Expiration timestamp of the offer
publish_intent
Submit a signed user intent for execution. Supported signature standards:nep413, erc191, raw_ed25519.
- NEP-413
- ERC-191
- Raw Ed25519
Quote response hashes from solvers
standard-"nep413"payload.message- Stringified intent payloadpayload.nonce- Unique noncepayload.recipient-"intents.near"payload.callbackUrl- Optional, for some walletssignature- Signature of the payloadpublic_key- Signer’s public key
Example request
Example request
Example response
Example response
status-"OK"or"FAILED"reason- Error reason (if failed)intent_hash- Intent identifier
get_status
Check the status of an intent’s execution.Intent identifier
Example request
Example request
Example response
Example response
intent_hash- Intent identifierstatus- Execution status (see status values below)data.hash- NEAR transaction hash (if available)
| Status | Description |
|---|---|
PENDING | Intent received, awaiting execution |
TX_BROADCASTED | Transaction sent to the Verifier contract |
SETTLED | Successfully settled on-chain |
NOT_FOUND_OR_NOT_VALID | Intent not received, expired, or execution error |