Intented docs

Get a 1Click quote for a payment on Base

POST
/api/quote

Before the agent proposes a payment through 1Click. The agent then proposes an ft_transfer of amount_in of token to deposit_address, expiring before deadline_ms, and asks POST /api/verdict with quote_id. A recipient off the wallet's cross-chain list is still quoted: the model judges it and the wallet refuses it at execute.

Request Body

application/json
  1. body
wallet_id*string
intent*

Response Body

The quote

application/json
  1. response
quote_id?string
Match^q_[0-9a-f]{16}$
deposit_address?string
token?string
amount_in?string
deadline_ms?integer
amount_out?string
Example Request
curl -X POST 'https://hack.furqaannabi.com/api/quote' \  -H 'Content-Type: application/json' \  -d '{  "wallet_id": "string",  "intent": {    "token": "string",    "amount": "string",    "dest_chain": "base",    "dest_asset": "nep141:base-0x833589fcd6edb6e08f4c7c32d4f71b54bda02913.omft.near",    "recipient": "string"  }}'
Example Response
{  "quote_id": "string",  "deposit_address": "string",  "token": "string",  "amount_in": "string",  "deadline_ms": 0,  "amount_out": "string"}