getPlanSteps
Return the ordered, sanitized steps an integrator can present to a user.
Import
ts
import { getPlanSteps } from "@0xcurvy/curvy-sdk/actions";Usage
ts
const result = getPlanSteps(plan);Signature
ts
function getPlanSteps<C extends DraftCommand>(plan: Plan<C>): PlanStep[]Returns
PlanStep[]
The action resolves or returns the value shown in the signature.
Parameters
plan
- Type:
Plan<C> - Required: yes
A plan whose sanitized command and wait metadata should be returned.
ts
const result = getPlanSteps(
plan,
);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.executeIntent— Execute a handle returned by estimateIntent.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.