
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@dfx.swiss/core
Advanced tools
Framework-agnostic TypeScript SDK for the [DFX.swiss](https://dfx.swiss) API. Provides type definitions, API client, utilities, and validations.
Framework-agnostic TypeScript SDK for the DFX.swiss API. Provides type definitions, API client, utilities, and validations.
npm install @dfx.swiss/core
import { DfxApiClient, Blockchain } from '@dfx.swiss/core';
const client = new DfxApiClient({
apiUrl: 'https://api.dfx.swiss/v1', // optional, this is the default
});
// Authenticate
const message = await client.auth.getSignMessage(walletAddress);
const signIn = await client.auth.authenticate({ address, signature });
client.setToken(signIn.accessToken);
// Use API
const assets = await client.asset.list({ blockchains: [Blockchain.ETHEREUM] });
const user = await client.user.get();
DfxApiClient provides typed access to all DFX API endpoints:
| Property | Description |
|---|---|
auth | Authentication (wallet, email, LNURL) |
asset | Asset listing and filtering |
bank | Bank operations |
bankAccount | Bank account management |
buy | Buy transactions |
country | Country data |
fiat | Fiat currencies |
kyc | KYC/compliance workflows |
language | Language settings |
paymentLinks | Payment link management |
paymentRoutes | Payment routing |
sell | Sell transactions |
settings | App settings |
support | Support messaging |
swap | Swap operations |
transaction | Transaction history |
user | User management |
For server-side usage or testing, inject a custom fetch function:
const client = new DfxApiClient({
fetchFn: customFetch,
});
Requires a global fetch implementation (Node.js 18+ or browser). The package uses DOM APIs (File, FileReader, Blob) for file handling — ensure your environment supports these or polyfill as needed.
MIT
FAQs
Framework-agnostic TypeScript SDK for the [DFX.swiss](https://dfx.swiss) API. Provides type definitions, API client, utilities, and validations.
The npm package @dfx.swiss/core receives a total of 256 weekly downloads. As such, @dfx.swiss/core popularity was classified as not popular.
We found that @dfx.swiss/core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.