findPortal
Find the portal owned by the active account at a specific on-chain address.
Dispatches by network flavour: Solana matches a vault PDA directly; EVM enumerates every owned portal and matches the checksummed target address.
Import
ts
import { findPortal } from "@0xcurvy/curvy-sdk/actions";Usage
ts
await findPortal({ address: "0x…", network });Signature
ts
function findPortal(parameters: FindPortalParameters): Promise<MatchedPortalRecord | null>Returns
Promise<MatchedPortalRecord | null>
The action resolves or returns the value shown in the signature.
Parameters
address
- Type:
HexString | (string & {}) - Required: yes
The on-chain portal address to match.
ts
const result = await findPortal({
address,
network,
});network
- Type:
Network - Required: yes
The network on which the portal address exists.
ts
const result = await findPortal({
address,
network,
});config
- Type:
CurvyConfig - Required: no
Curvy config to use. Defaults to the ambient config.
ts
const result = await findPortal({
address,
network,
config,
});Errors
Errors from config resolution and the underlying SDK operation are propagated to the caller.
Related
- Portals and recovery guide
findOwnedPortals— Enumerate every portal owned by the active account's keys on the given network.recoverPortal— Recover (sweep) the funds held in a portal to destinationAddress.