
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@leapwallet/ondo-gm-core
Advanced tools
Core package providing fundamental building blocks for Ondo protocol integration - transaction clients, query utilities, state management, and TypeScript types
Core package providing fundamental building blocks for Ondo protocol integration - transaction clients, query utilities, state management, and TypeScript types.
npm install @leapwallet/ondo-gm-core
# or
pnpm add @leapwallet/ondo-gm-core
# or
yarn add @leapwallet/ondo-gm-core
import { OndoGMApi } from '@leapwallet/ondo-gm-core';
// Initialize the API client
const apiClient = new OndoGMApi({
baseUrl: 'https://api.ondo.finance',
});
The core package provides pre-configured query options for use with TanStack Query:
import { useQuery } from '@tanstack/react-query';
import { getAssetPriceQuery, getAssetsQuery } from '@leapwallet/ondo-gm-core';
// Fetch all asset prices
const assetsQuery = getAssetsQuery(apiClient);
const { data: assets } = useQuery(assetsQuery);
// Fetch specific asset price
const assetPriceQuery = getAssetPriceQuery(apiClient, {
asset: 'USDC',
});
const { data: price } = useQuery(assetPriceQuery);
import { ChainType, type TransactionParams } from '@leapwallet/ondo-gm-core';
// Prepare transaction parameters
const transactionParams: TransactionParams = {
chainId: '1',
fromAddress: '0x...',
toAddress: '0x...',
amount: '1000000', // 1 USDC (6 decimals)
// ... other required fields
};
// Transaction preparation and execution would be handled by chain-specific clients
// (see @leapwallet/ondo-gm-evm-client for EVM implementation)
import { OndoGMState } from '@leapwallet/ondo-gm-core';
// Access the global state store
const store = OndoGMState.baseState;
// The state is observable with MobX
// Use with @leapwallet/ondo-gm-react-adapter for React integration
getAssetsQuery(apiClient, options?) - Fetch all asset pricesgetAssetPriceQuery(apiClient, query) - Fetch specific asset pricegetMarketQuery(apiClient, query) - Fetch market datagetOHLCQuery(apiClient, query) - Fetch OHLC (candlestick) datagetAccountQuery(apiClient, query) - Fetch account informationChainType - Supported blockchain types (ETHEREUM, SOLANA)TransactionParams - Parameters for transaction preparationPreparedTransaction<T> - Prepared transaction with gas estimatesOndoGMState.baseState - Global application state storeThe package exports comprehensive TypeScript types for all Ondo protocol entities, generated from the OpenAPI specification.
import type { Account, Asset, Attestation, Market, OHLCData } from '@leapwallet/ondo-gm-core';
This core package is designed to work seamlessly with other packages in the Ondo SDK:
@tanstack/query-core - Query state managementmobx - Reactive state managementISC
FAQs
Core package providing fundamental building blocks for Ondo protocol integration - transaction clients, query utilities, state management, and TypeScript types
We found that @leapwallet/ondo-gm-core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.