curl --request POST \
--url https://v1.orchestrator.rhinestone.dev/intents/route \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"destinationChainId": 8453,
"tokenRequests": [
{
"tokenAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "1000000"
}
],
"account": {
"address": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
"accountType": "smartAccount",
"setupOps": [
{
"to": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
"data": "0x..."
}
],
"emissaryConfig": {
"validatorAddress": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
"emissaryAddress": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
"emissaryEnable": {
"allocatorSig": "0x...",
"userSig": "0x..."
},
"settings": {
"allocator": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a"
}
},
"delegations": {}
},
"destinationExecutions": [
{
"to": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"value": "0",
"data": "0xa9059cbb000000000000000000000000579d5631f76126991c00fb8fe5467fa9d49e5f6a00000000000000000000000000000000000000000000000000000000000f4240"
}
],
"destinationGasUnits": "100000",
"accountAccessList": {
"chainIds": [
1
],
"tokens": [
"<string>"
],
"chainTokens": {},
"exclude": {
"chainIds": [
1
],
"tokens": [
"<string>"
],
"chainTokens": {}
}
},
"recipient": {
"address": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
"accountType": "smartAccount",
"setupOps": [
{
"to": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
"data": "0x..."
}
],
"emissaryConfig": {
"validatorAddress": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
"emissaryAddress": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
"emissaryEnable": {
"allocatorSig": "0x...",
"userSig": "0x..."
},
"settings": {
"allocator": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a"
}
},
"delegations": {}
},
"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": [
[
"1",
"1000000"
],
[
"2",
"2000000"
]
],
"spendTokens": [
[
"1",
"1000000"
],
[
"2",
"2000000"
]
],
"mandate": {
"recipient": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
"tokenOut": [
[
"1",
"1000000"
],
[
"2",
"2000000"
]
],
"destinationChainId": "8453",
"fillDeadline": "1733493192",
"preClaimOps": "<unknown>",
"destinationOps": "<unknown>",
"qualifier": {
"settlementContext": {
"settlementLayer": "INTENT_EXECUTOR",
"using7579": true,
"fundingMethod": "NO_FUNDING"
},
"encodedVal": "0x..."
},
"v": 4,
"minGas": "0"
}
}
],
"serverSignature": "0x...",
"signedMetadata": {
"tokenPrices": {
"USDC": 1,
"WETH": 2000
},
"gasPrices": {
"1": "20000000000",
"10": "1000000000"
},
"opGasParams": {
"10": {
"l1BaseFee": "100",
"l1BlobBaseFee": "100",
"baseFeeScalar": "100",
"blobFeeScalar": "100"
}
},
"quotes": {},
"account": {
"address": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
"accountContext": {},
"accountType": "smartAccount",
"setupOps": [
{
"to": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
"data": "0x..."
}
],
"emissaryConfig": {
"validatorAddress": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
"emissaryAddress": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
"emissaryEnable": {
"allocatorSig": "0x...",
"userSig": "0x..."
},
"settings": {
"allocator": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a"
}
},
"requiredDelegations": {}
},
"recipient": {
"address": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
"accountContext": {},
"accountType": "smartAccount",
"setupOps": [
{
"to": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
"data": "0x..."
}
],
"emissaryConfig": {
"validatorAddress": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
"emissaryAddress": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
"emissaryEnable": {
"allocatorSig": "0x...",
"userSig": "0x..."
},
"settings": {
"allocator": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a"
}
},
"requiredDelegations": {}
},
"fees": {
"sponsorFee": {
"relayer": 0.0009,
"protocol": 0
}
}
},
"signedAuthorizations": [
{
"chainId": 8453,
"address": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
"nonce": "0",
"yParity": 27,
"r": "0x...",
"s": "0x..."
}
],
"recipientSignedAuthorizations": [
{
"chainId": 8453,
"address": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
"nonce": "0",
"yParity": 27,
"r": "0x...",
"s": "0x..."
}
]
},
"intentCost": {
"hasFulfilledAll": true,
"tokensSpent": {},
"tokensReceived": [
{
"tokenAddress": "<string>",
"amountSpent": 123,
"targetAmount": 123,
"fee": 123,
"hasFulfilled": true
}
],
"sponsorFee": {
"relayer": 0.0009,
"protocol": 0
}
},
"tokenRequirements": {}
}Retrieves the route token transfers and target executions based on the provided user address and intent.
curl --request POST \
--url https://v1.orchestrator.rhinestone.dev/intents/route \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"destinationChainId": 8453,
"tokenRequests": [
{
"tokenAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "1000000"
}
],
"account": {
"address": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
"accountType": "smartAccount",
"setupOps": [
{
"to": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
"data": "0x..."
}
],
"emissaryConfig": {
"validatorAddress": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
"emissaryAddress": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
"emissaryEnable": {
"allocatorSig": "0x...",
"userSig": "0x..."
},
"settings": {
"allocator": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a"
}
},
"delegations": {}
},
"destinationExecutions": [
{
"to": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"value": "0",
"data": "0xa9059cbb000000000000000000000000579d5631f76126991c00fb8fe5467fa9d49e5f6a00000000000000000000000000000000000000000000000000000000000f4240"
}
],
"destinationGasUnits": "100000",
"accountAccessList": {
"chainIds": [
1
],
"tokens": [
"<string>"
],
"chainTokens": {},
"exclude": {
"chainIds": [
1
],
"tokens": [
"<string>"
],
"chainTokens": {}
}
},
"recipient": {
"address": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
"accountType": "smartAccount",
"setupOps": [
{
"to": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
"data": "0x..."
}
],
"emissaryConfig": {
"validatorAddress": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
"emissaryAddress": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
"emissaryEnable": {
"allocatorSig": "0x...",
"userSig": "0x..."
},
"settings": {
"allocator": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a"
}
},
"delegations": {}
},
"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": [
[
"1",
"1000000"
],
[
"2",
"2000000"
]
],
"spendTokens": [
[
"1",
"1000000"
],
[
"2",
"2000000"
]
],
"mandate": {
"recipient": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
"tokenOut": [
[
"1",
"1000000"
],
[
"2",
"2000000"
]
],
"destinationChainId": "8453",
"fillDeadline": "1733493192",
"preClaimOps": "<unknown>",
"destinationOps": "<unknown>",
"qualifier": {
"settlementContext": {
"settlementLayer": "INTENT_EXECUTOR",
"using7579": true,
"fundingMethod": "NO_FUNDING"
},
"encodedVal": "0x..."
},
"v": 4,
"minGas": "0"
}
}
],
"serverSignature": "0x...",
"signedMetadata": {
"tokenPrices": {
"USDC": 1,
"WETH": 2000
},
"gasPrices": {
"1": "20000000000",
"10": "1000000000"
},
"opGasParams": {
"10": {
"l1BaseFee": "100",
"l1BlobBaseFee": "100",
"baseFeeScalar": "100",
"blobFeeScalar": "100"
}
},
"quotes": {},
"account": {
"address": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
"accountContext": {},
"accountType": "smartAccount",
"setupOps": [
{
"to": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
"data": "0x..."
}
],
"emissaryConfig": {
"validatorAddress": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
"emissaryAddress": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
"emissaryEnable": {
"allocatorSig": "0x...",
"userSig": "0x..."
},
"settings": {
"allocator": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a"
}
},
"requiredDelegations": {}
},
"recipient": {
"address": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
"accountContext": {},
"accountType": "smartAccount",
"setupOps": [
{
"to": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
"data": "0x..."
}
],
"emissaryConfig": {
"validatorAddress": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
"emissaryAddress": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
"emissaryEnable": {
"allocatorSig": "0x...",
"userSig": "0x..."
},
"settings": {
"allocator": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a"
}
},
"requiredDelegations": {}
},
"fees": {
"sponsorFee": {
"relayer": 0.0009,
"protocol": 0
}
}
},
"signedAuthorizations": [
{
"chainId": 8453,
"address": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
"nonce": "0",
"yParity": 27,
"r": "0x...",
"s": "0x..."
}
],
"recipientSignedAuthorizations": [
{
"chainId": 8453,
"address": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
"nonce": "0",
"yParity": 27,
"r": "0x...",
"s": "0x..."
}
]
},
"intentCost": {
"hasFulfilledAll": true,
"tokensSpent": {},
"tokensReceived": [
{
"tokenAddress": "<string>",
"amountSpent": 123,
"targetAmount": 123,
"fee": 123,
"hasFulfilled": true
}
],
"sponsorFee": {
"relayer": 0.0009,
"protocol": 0
}
},
"tokenRequirements": {}
}Rhinestone API key
Body
The ID of the target blockchain
x >= 08453
A list of token requested on the target chain
Show child attributes
Account details
Show child attributes
Execution calls on the target chain.
Show child attributes
The gas limit for the target chain executions
"100000"
Account access list specifying which chains and tokens an account may access
Show child attributes
Account details
Show child attributes
Intent options
Show child attributes
{
"topupCompact": true,
"settlementLayers": ["ECO"],
"sponsorSettings": {
"gasSponsored": true,
"bridgeFeesSponsored": true,
"swapFeesSponsored": true
},
"feeToken": "USDC"
}200
Successfully retrieved the route
Was this page helpful?