Skip to main content

Function Signature

Description

Returns an owner’s earnings across every Earn vault on a chain, with USD totals and a per-vault breakdown. Available as client.earn on DynamicEvmWalletClient and DynamicSvmWalletClient.

Parameters

Required Parameters

  • ownerAddress (string): The wallet address that owns the positions.
  • chainId (number): The chain to aggregate earnings on.

Optional Parameters

  • chainName (EarnChainName): The chain family (for example ChainEnum.Evm or ChainEnum.Sol). Defaults to EVM.
  • traceContext (TraceContext): Trace context forwarded to the Dynamic API.

Returns

  • Promise<EarnEarnings>: The owner’s earnings, with USD totals and a per-vault breakdown.

Example

Error Handling

Fails with an HTTP 403 error when Earn is not enabled for your environment.

See Also

Last modified on October 29, 2026