Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@idexio/idex-sdk
Advanced tools
The official Typescript/Javascript SDK for IDEX v4 REST and WebSocket APIs.
npm install @idexio/idex-sdk@beta
import * as idex from '@idexio/idex-sdk';
// const publicClient = new idex.RestPublicClient();
// or, for sandbox API:
const publicClient = new idex.RestPublicClient({
// no params required for production api client
sandbox: true,
});
const authenticatedClient = new RestAuthenticatedClient({
sandbox: false,
// fill these in with your own walletPrivateKey/apiKey/apiSecret
walletPrivateKey: '0x...',
apiKey: '1e7c4f52-4af7-4e1b-aa94-94fac8d931aa',
apiSecret: 'ufuh3ywgg854aq7m73oy6gnnpj5ar9a67szuw5lclbz77zqu0j',
});
const markets = await publicClient.getMarkets();
const wallets = await authenticatedClient.getWallets();
Minimum supported version is Node v16 with support for import/export map resolution.
The sdk should work with any JavaScript environment that supports import maps & export maps.
Your tsconfig/jsconfig must be setup to ensure TypeScript handles import/export map resolution. This is generally done by setting module
and moduleResolution
to Node16
or NodeNext
.
See resolvePackageJsonExports and resolvePacakageJsonImports configuration reference for additional details.
JavaScript is fully supported, however, it is recommended to add // @ts-check
at the top of your files so your IDE will inform you of any
type-related errors in your code!
Typechain types and factories for contracts are available by importing them from /typechain
export directly, they are not
exported from the main export.
import * as typechain from '@idexio/idex-sdk/typechain';
The IDEX JavaScript SDK is released under the MIT License.
FAQs
IDEX SDK for Javascript in the browser and Node.js
We found that @idexio/idex-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.