executeIntent
Execute a handle returned by estimateIntent.
Import
ts
import { executeIntent } from "@0xcurvy/curvy-sdk/actions";Usage
ts
const result = await executeIntent({ prepared, config });Signature
ts
function executeIntent(parameters: ExecuteIntentParameters): Promise<PlanSuccessfulExecution>Returns
Promise<PlanSuccessfulExecution>
The action resolves or returns the value shown in the signature.
Parameters
prepared
- Type:
PreparedIntent - Required: yes
The in-memory prepared handle returned by estimateIntent.
ts
const result = await executeIntent({
prepared,
});directSubmitter
- Type:
DirectSubmitter - Required: no
Override the config's direct signer adapter; the prepared submission mode cannot be changed.
ts
const result = await executeIntent({
prepared,
directSubmitter,
});config
- Type:
CurvyConfig - Required: no
Curvy config to use. Defaults to the ambient config.
ts
const result = await executeIntent({
prepared,
config,
});Errors
Errors from config resolution and the underlying SDK operation are propagated to the caller.
Related
- Interacting with assets guide
estimateIntent— Select spendable notes and return fees, delivered amount, a sanitized route, and an in-memory handle that can be passed to executeIntent.getPlanSteps— Return the ordered, sanitized steps an integrator can present to a user.estimateExternalTransfer— Pre-deposit estimate for a swap-public-style external transfer.estimateBridge— Quote a bridge/swap before committing — for the swap UI (in-app/public) and send-with-exit-bridge.getTransactionHistory— Return user-facing activity by merging rich local intents with the chain-reconstructed fallback.