Skip to main content
POST
/
intents
/
route
Get Intent Route
curl --request POST \
  --url https://v1.orchestrator.rhinestone.dev/intents/route \
  --header 'Content-Type: application/json' \
  --data '{
  "destinationChainId": 8453,
  "tokenTransfers": [
    {
      "tokenAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "1000000"
    }
  ],
  "account": {
    "address": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
    "accountType": "<string>",
    "setupOps": [
      {
        "to": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
        "data": "0x..."
      }
    ],
    "emissaryConfig": {
      "configId": "42",
      "validatorAddress": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
      "emissaryAddress": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
      "emissaryEnable": {
        "allocatorSig": "0x...",
        "userSig": "0x..."
      },
      "emissaryConfig": {
        "allocator": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a"
      }
    },
    "delegations": {}
  },
  "destinationExecutions": [
    {
      "to": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "value": "0",
      "data": "0xa9059cbb000000000000000000000000579d5631f76126991c00fb8fe5467fa9d49e5f6a00000000000000000000000000000000000000000000000000000000000f4240"
    }
  ],
  "destinationGasUnits": "100000",
  "accountAccessList": [
    {
      "chainId": 123,
      "tokenAddress": "<string>"
    }
  ],
  "options": {
    "topupCompact": true,
    "settlementLayers": [
      "ECO"
    ],
    "sponsorSettings": {
      "gasSponsored": true,
      "bridgeFeesSponsored": true,
      "swapFeesSponsored": true
    },
    "feeToken": "USDC"
  }
}'
{
  "intentOp": {
    "sponsor": "0x8a310b9085faF5d9464D84C3d9a7BE3b28c94531",
    "nonce": "0",
    "expires": "1733493192",
    "elements": [
      {
        "arbiter": "0x8a310b9085faF5d9464D84C3d9a7BE3b28c94531",
        "chainId": "1",
        "idsAndAmounts": "<any>",
        "spendTokens": "<any>",
        "mandate": {
          "recipient": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
          "tokenOut": "<any>",
          "destinationChainId": 8453,
          "fillDeadline": "1733493192",
          "preClaimOps": "<any>",
          "destinationOps": "<any>",
          "qualifier": {
            "settlementContext": {
              "settlementLayer": "ACROSS",
              "usingJIT": true,
              "using7579": true,
              "requestId": "<string>"
            },
            "encodedVal": "0x..."
          },
          "v": 123,
          "minGas": 123
        },
        "beforeFill": true
      }
    ],
    "serverSignature": "0x...",
    "signedMetadata": {
      "fees": {
        "protocolFees": {
          "0x8a310b9085faF5d9464D84C3d9a7BE3b28c94531": 1000000000000000000
        },
        "sponsorFee": {
          "relayer": 0.01,
          "protocol": 0.01
        }
      },
      "tokenPrices": {
        "USDC": 1,
        "WETH": 2000
      },
      "gasPrices": {
        "1": "20000000000",
        "10": "1000000000"
      },
      "opGasParams": "<any>",
      "account": {
        "address": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
        "accountType": "<string>",
        "setupOps": [
          {
            "to": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
            "data": "0x..."
          }
        ],
        "emissaryConfig": {
          "configId": "42",
          "validatorAddress": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
          "emissaryAddress": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
          "emissaryEnable": {
            "allocatorSig": "0x...",
            "userSig": "0x..."
          },
          "emissaryConfig": {
            "allocator": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a"
          }
        },
        "accountContext": {},
        "requiredDelegations": {}
      },
      "quotes": "<any>"
    },
    "signedAuthorizations": [
      {
        "chainId": 8453,
        "address": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
        "nonce": "0",
        "yParity": 27,
        "r": "0x...",
        "s": "0x..."
      }
    ]
  },
  "intentCost": {
    "tokensSpent": {},
    "tokensReceived": [
      {
        "tokenAddress": "<string>",
        "amountSpent": 123,
        "targetAmount": 123,
        "fee": 123,
        "hasFulfilled": true
      }
    ]
  }
}

Headers

x-api-key
string

Rhinestone API key

Body

application/json

Body

destinationChainId
number
required

The ID of the target blockchain

Required range: x >= 0
Example:

8453

tokenTransfers
object[]
required

A list of token transfers

account
object
required

Smart account type and optional init data if account is not deployed

destinationExecutions
object[]

Execution calls on the target chain. Cannot be used with userOp

destinationGasUnits
integer

The gas units for the target chain

Example:

"100000"

accountAccessList

Account access list specifying which chains and tokens an account may access

options
object

Intent options

Example:
{
"topupCompact": true,
"settlementLayers": ["ECO"],
"sponsorSettings": {
"gasSponsored": true,
"bridgeFeesSponsored": true,
"swapFeesSponsored": true
},
"feeToken": "USDC"
}

Response

200

Successfully retrieved the route

intentOp
object
required

The order bundle containing multi-chain execution details with pricing metadata

intentCost
object
required

Cost breakdown for the intent