Skip to main content
POST
/
intent-operations
Submit Intent Operations
curl --request POST \
  --url https://v1.orchestrator.rhinestone.dev/intent-operations \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <x-api-key>' \
  --data '{
  "signedIntentOp": {
    "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": "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",
        "accountType": "smartAccount",
        "setupOps": [
          {
            "to": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
            "data": "0x..."
          }
        ],
        "emissaryConfig": {
          "validatorAddress": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
          "emissaryAddress": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
          "emissaryEnable": {
            "allocatorSig": "0x...",
            "userSig": "0x..."
          },
          "settings": {
            "allocator": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a"
          }
        },
        "accountContext": {},
        "requiredDelegations": {}
      },
      "recipient": {
        "address": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
        "accountType": "smartAccount",
        "setupOps": [
          {
            "to": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
            "data": "0x..."
          }
        ],
        "emissaryConfig": {
          "validatorAddress": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
          "emissaryAddress": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
          "emissaryEnable": {
            "allocatorSig": "0x...",
            "userSig": "0x..."
          },
          "settings": {
            "allocator": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a"
          }
        },
        "accountContext": {},
        "requiredDelegations": {}
      },
      "fees": {
        "sponsorFee": {
          "relayer": 0.0009,
          "protocol": 0
        }
      }
    },
    "signedAuthorizations": [
      {
        "chainId": 8453,
        "address": "0x579d5631f76126991c00fb8fe5467fa9d49e5f6a",
        "nonce": "0",
        "yParity": 27,
        "r": "0x...",
        "s": "0x..."
      }
    ],
    "destinationSignature": "0x...",
    "originSignatures": [
      "0x...",
      "0x..."
    ],
    "options": {
      "dryRun": true
    }
  }
}'
{
  "result": {
    "id": "6288024828617617176235460836311142252483529646664720691654196790232050827264",
    "status": "PENDING"
  }
}

Headers

x-api-key
string
required

Rhinestone API key

Body

application/json

Body

signedIntentOp
object
required

Response

201

Intent operations submitted successfully

result
object
required

Intent operation submission results

  • Option 1
  • Option 2