---
title: Bridge action envelopes
description: SDK declarations for bridge action envelopes. Inputs, return types, defaults, effects, and immutable source links.
url: https://docs.intuition.systems/docs/reference/sdk/plans-base
markdown_url: https://docs.intuition.systems/docs/reference/sdk/plans-base.md
version: V2
llms_index: https://docs.intuition.systems/llms.txt
kind: reference
reader:
  - app
  - agent
packages:
  - '@0xintuition/sdk@4.1.0'
---

API for `@0xintuition/sdk@4.1.0`. [Compatibility](https://docs.intuition.systems/docs/reference/compatibility) · [Source](https://github.com/0xIntuition/packages/blob/ccae0f0d0277cddd8490b72c49d3771866e7ffea/packages/sdk/src/actions/plans/base.ts).

Import from `@0xintuition/sdk/actions`.

Signatures show the exact accepted inputs and return types. Named input/output structures and dependency-injection types are listed below; viem and protocol types come from their respective packages. Preparation and quote functions can perform RPC reads. Envelope builders on the action-envelope pages use caller-supplied read context and perform no RPC reads or signing. **`feeProxyExecutePlan` sends transactions**; the other SDK actions on these pages prepare transactions or read data.

## baseTrustBridgeToIntuitionEnvelope

Encode approval and Base-to-Intuition TRUST bridge steps using supplied allowance and fee context, without RPC or signing.

[Source](https://github.com/0xIntuition/packages/blob/ccae0f0d0277cddd8490b72c49d3771866e7ffea/packages/sdk/src/actions/plans/base.ts#L80)

```ts
function baseTrustBridgeToIntuitionEnvelope(
  inputs: BuildBaseTrustBridgeToIntuitionPlanInputs,
): Promise<import('@0xintuition/sdk/actions').AgentActionEnvelope>;
```

## intuitionTrustBridgeToBaseEnvelope

Encode Intuition-to-Base TRUST bridge steps using supplied fee context, without RPC or signing.

[Source](https://github.com/0xIntuition/packages/blob/ccae0f0d0277cddd8490b72c49d3771866e7ffea/packages/sdk/src/actions/plans/base.ts#L162)

```ts
function intuitionTrustBridgeToBaseEnvelope(
  inputs: BuildIntuitionTrustBridgeToBasePlanInputs,
): Promise<import('@0xintuition/sdk/actions').AgentActionEnvelope>;
```

## baseERC20BridgeToIntuitionEnvelope

Encode ERC-20 approval and bridge steps from Base using supplied allowance and fee context.

[Source](https://github.com/0xIntuition/packages/blob/ccae0f0d0277cddd8490b72c49d3771866e7ffea/packages/sdk/src/actions/plans/base.ts#L220)

```ts
function baseERC20BridgeToIntuitionEnvelope(
  inputs: BuildBaseERC20BridgeToIntuitionPlanInputs,
): Promise<import('@0xintuition/sdk/actions').AgentActionEnvelope>;
```

## intuitionERC20BridgeToBaseEnvelope

Encode ERC-20 approval and bridge steps from Intuition using supplied allowance and fee context.

[Source](https://github.com/0xIntuition/packages/blob/ccae0f0d0277cddd8490b72c49d3771866e7ffea/packages/sdk/src/actions/plans/base.ts#L316)

```ts
function intuitionERC20BridgeToBaseEnvelope(
  inputs: BuildIntuitionERC20BridgeToBasePlanInputs,
): Promise<import('@0xintuition/sdk/actions').AgentActionEnvelope>;
```

## Imported type provenance

Public import locations and the definitions used by these signatures and helper types. Value imports appear where a dependency hook uses `typeof`.

| Name in this module | Public import                                                   | Definition                                                                                                                                                      |
| ------------------- | --------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `MetaBridgeAsset`   | `import type { MetaBridgeAsset } from '@0xintuition/periphery'` | [Source definition](https://github.com/0xIntuition/packages/blob/ccae0f0d0277cddd8490b72c49d3771866e7ffea/packages/deployments/src/periphery-deployments.ts#L6) |
| `Address`           | `import type { Address } from 'viem'`                           | Owned by the external package.                                                                                                                                  |

## Input and result types

Exported declarations are public imports from the SDK subpath above. Module-local helper aliases describe accepted shapes but are not public exports.

### BridgeFeeReadContext

Public export.

```ts
export type BridgeFeeReadContext = {
  bridgeFee?: bigint;
};
```

### ApprovalBridgePlanReadContext

Public export.

```ts
export type ApprovalBridgePlanReadContext = BridgeFeeReadContext & {
  currentAllowance?: bigint;
};
```

### BaseTrustBridgePlanReadContext

Public export.

```ts
export type BaseTrustBridgePlanReadContext = ApprovalBridgePlanReadContext;
```

### BuildBaseTrustBridgeToIntuitionPlanInputs

Public export.

```ts
export type BuildBaseTrustBridgeToIntuitionPlanInputs = {
  owner: Address;
  recipient: Address;
  trustAmount: bigint;
  trustAddress?: Address;
  readContext?: BaseTrustBridgePlanReadContext;
};
```

### BuildIntuitionTrustBridgeToBasePlanInputs

Public export.

```ts
export type BuildIntuitionTrustBridgeToBasePlanInputs = {
  owner: Address;
  recipient: Address;
  trustAmount: bigint;
  metaNativeSpokeAddress?: Address;
  readContext?: BridgeFeeReadContext;
};
```

### BuildBaseERC20BridgeToIntuitionPlanInputs

Public export.

```ts
export type BuildBaseERC20BridgeToIntuitionPlanInputs = {
  owner: Address;
  recipient: Address;
  asset: MetaBridgeAsset;
  amount: bigint;
  assetAddress?: Address;
  metaERC20HubAddress?: Address;
  readContext?: ApprovalBridgePlanReadContext;
};
```

### BuildIntuitionERC20BridgeToBasePlanInputs

Public export.

```ts
export type BuildIntuitionERC20BridgeToBasePlanInputs = {
  owner: Address;
  recipient: Address;
  asset: MetaBridgeAsset;
  amount: bigint;
  metaERC20SpokeAddress?: Address;
  readContext?: BridgeFeeReadContext;
};
```

Applies to V2 · `@0xintuition/sdk` 4.1.0
