Skip to main content

What is a DeFi Action?

An Action is a standardized protocol operation — such as swap, deposit, withdraw, borrow, or harvest — used alone or composed into a Shortcut or bundle.

J
Written by Javier Diaz

A DeFi Action is a standardized protocol operation — such as swap, deposit, withdraw, borrow, or harvest. In Enso, Actions can be used on their own in a Bundle, or composed into a Shortcut when Enso or your product builds a multi-step path.

Definition

Enso’s Concepts reference defines an action as a discrete operation performed on a protocol. Each action has required inputs and expected outputs. The same conceptual action can be applied across protocols that share a standard, so your product does not have to learn each protocol’s raw interface.

How it works

  1. Discover which actions a protocol supports through the live standards or actions endpoints.

  2. Use Route when the whole flow is a path from one input into one destination.

  3. Use Bundle when you need to name Actions explicitly (protocol, action, and args).

  4. Later Bundle steps can consume an earlier Action’s output with useOutputOfCallAt.

  5. Same-chain Actions in one transaction succeed or revert together.

How Enso does this

See Concepts and the Bundle Actions Reference. Confirm current availability with GET https://api.enso.build/api/v1/standards (and related action metadata). Do not assume every deposit or swap takes the same fields. Some Actions, including harvest, borrow, and repay, belong on the Bundle API, often with the delegate strategy.

FAQ

Is an Action the same as a Shortcut?

No. An Action is one step. A Shortcut is the executable workflow built from a path or from a list of Actions.

Can I use an Action on every protocol?

Only if that protocol integration exposes it. Check live protocol and standards data.

Related articles

  • What is a Shortcut in DeFi?

  • What is the Enso Bundle API?

  • How do I bundle multiple DeFi actions into one transaction?

  • What types of DeFi operations does Enso support?

  • When should I use the Bundle API instead of Route?

Sources

Did this answer your question?