POST
/
accounts
/
{userAddress}
/
bundles
/
path
curl --request POST \
  --url https://orchestrator.rhinestone.dev/accounts/{userAddress}/bundles/path \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <x-api-key>' \
  --data '{
  "targetChainId": 123,
  "tokenTransfers": [
    {
      "tokenAddress": "<string>",
      "amount": "<string>"
    }
  ],
  "targetAccount": "<string>",
  "targetExecutions": [
    {
      "to": "<string>",
      "value": "<string>",
      "data": "<string>"
    }
  ],
  "userOp": {
    "sender": "<string>",
    "nonce": "<string>",
    "callData": "<string>",
    "callGasLimit": "<string>",
    "verificationGasLimit": "<string>",
    "preVerificationGas": "<string>"
  },
  "omniLock": true,
  "targetGasUnits": "<string>",
  "lockMode": "HOOK",
  "accountAccessList": [
    {
      "chainId": 123,
      "tokenAddress": "<string>"
    }
  ]
}'
{
  "orderBundles": [
    {
      "orderBundle": "<any>",
      "intentCost": {
        "tokensSpent": {
          "1": {
            "0x6B175474E89094C44Da98b954EedeAC495271d0F": "501000"
          },
          "137": {
            "0x0000000000000000000000000000000000001010": "500000"
          }
        },
        "tokensReceived": [
          {
            "tokenAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
            "amountSpent": "1001000",
            "targetAmount": "1000000",
            "fee": "1000"
          }
        ]
      },
      "injectedExecutions": [
        {
          "to": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "value": "0",
          "data": "0xa9059cbb000000000000000000000000579d5631f76126991c00fb8fe5467fa9d49e5f6a"
        }
      ]
    }
  ]
}

Headers

x-api-key
string
required

Rhinestone API key

Path Parameters

userAddress
string
required

Ethereum address of the user account

Example:

"0x579d5631f76126991c00fb8fe5467fa9d49e5f6a"

Body

application/json

Body

The body is of type object.

Response

200
application/json

200

Successfully retrieved the order path