@@ -96,6 +96,46 @@ export class Ethereum extends APIResource {
9696 ] ) ,
9797 } ) ;
9898 }
99+
100+ /**
101+ * Retrieve detailed information about an earn vault, including current APY and
102+ * liquidity.
103+ *
104+ * @example
105+ * ```ts
106+ * const ethereumEarnVaultDetailsResponse =
107+ * await client.wallets.earn.ethereum.vaultDetails(
108+ * 'vault_id',
109+ * );
110+ * ```
111+ */
112+ vaultDetails (
113+ vaultID : string ,
114+ options ?: RequestOptions ,
115+ ) : APIPromise < ActionsAPI . EthereumEarnVaultDetailsResponse > {
116+ return this . _client . get ( path `/v1/earn/ethereum/vaults/${ vaultID } ` , options ) ;
117+ }
118+
119+ /**
120+ * Retrieve a wallet's current position in a specific earn vault, including
121+ * deposit/withdraw totals and current onchain vault shares.
122+ *
123+ * @example
124+ * ```ts
125+ * const ethereumEarnPositionResponse =
126+ * await client.wallets.earn.ethereum.vaultPosition(
127+ * 'wallet_id',
128+ * { vault_id: 'vault_id' },
129+ * );
130+ * ```
131+ */
132+ vaultPosition (
133+ walletID : string ,
134+ query : EthereumVaultPositionParams ,
135+ options ?: RequestOptions ,
136+ ) : APIPromise < ActionsAPI . EthereumEarnPositionResponse > {
137+ return this . _client . get ( path `/v1/wallets/${ walletID } /earn/ethereum/vaults` , { query, ...options } ) ;
138+ }
99139}
100140
101141export interface EthereumDepositParams {
@@ -184,12 +224,25 @@ export interface EthereumWithdrawParams {
184224 'privy-request-expiry' ?: string ;
185225}
186226
227+ export interface EthereumVaultPositionParams {
228+ /**
229+ * The vault ID to get position for.
230+ */
231+ vault_id : string ;
232+
233+ /**
234+ * Include archived wallets in lookup. Defaults to false.
235+ */
236+ include_archived ?: boolean ;
237+ }
238+
187239Ethereum . Incentive = Incentive ;
188240
189241export declare namespace Ethereum {
190242 export {
191243 type EthereumDepositParams as EthereumDepositParams ,
192244 type EthereumWithdrawParams as EthereumWithdrawParams ,
245+ type EthereumVaultPositionParams as EthereumVaultPositionParams ,
193246 } ;
194247
195248 export { Incentive as Incentive , type IncentiveClaimParams as IncentiveClaimParams } ;
0 commit comments