@funkit/connect
Version:
Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.
18 lines (17 loc) • 604 B
TypeScript
/**
* Reads the active xStock target token + its wrapper balances on-chain (the
* wallet-assets API indexes neither).
*
* - Fetch only. Scoped to xStock targets (`assetClass === 'xstock'`) so we don't
* fire RPC reads when there's nothing to read.
*/
import type { Address } from 'viem';
import type { AssetHoldingsItem } from '../domains/wallet';
export declare function useXstockAssetHoldings({ targetChainId, wrappedTokenAddress, enabled, }: {
targetChainId: string;
wrappedTokenAddress?: Address;
enabled?: boolean;
}): {
data: AssetHoldingsItem[];
isLoading: boolean;
};