
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@settlemint/sdk-js
Advanced tools
Core JavaScript SDK for integrating SettleMint's blockchain platform services into your applications
✨ https://settlemint.com ✨
Integrate SettleMint into your application with ease.
The SettleMint JavaScript SDK provides a type-safe wrapper around the SettleMint platform's GraphQL API. It enables you to interact with the platform's services in a fully typed manner, providing compile-time safety and autocompletion support.
createSettleMintClient(
options
):SettlemintClient
Defined in: sdk/js/src/settlemint.ts:275
Creates a SettleMint client with the provided options. The client provides methods to interact with various SettleMint resources like workspaces, applications, blockchain networks, blockchain nodes, middleware, integration tools, storage, private keys, insights and custom deployments.
Parameter | Type | Description |
---|---|---|
options | SettlemintClientOptions | Configuration options for the client including access token and instance URL |
A SettleMint client object with resource-specific methods
If options are invalid or if called in browser environment
If provided options fail schema validation
import { createSettleMintClient } from '@settlemint/sdk-js';
const client = createSettleMintClient({
accessToken: process.env.SETTLEMINT_ACCESS_TOKEN,
instance: process.env.SETTLEMINT_INSTANCE,
});
// List workspaces
const workspaces = await client.workspace.list();
// Read a specific workspace
const workspace = await client.workspace.read('workspace-unique-name');
Defined in: sdk/js/src/settlemint.ts:145
Client interface for interacting with the SettleMint platform.
Defined in: sdk/js/src/settlemint.ts:135
Options for the Settlemint client.
Omit
<ClientOptions
, "accessToken"
>Property | Type | Default value | Description | Inherited from | Defined in |
---|---|---|---|---|---|
accessToken? | string | undefined | The access token used to authenticate with the SettleMint platform | - | sdk/js/src/settlemint.ts:137 |
anonymous? | boolean | undefined | Whether to allow anonymous access (no access token required) | - | sdk/js/src/settlemint.ts:139 |
instance | string | UrlSchema | The URL of the SettleMint instance to connect to | Omit.instance | sdk/js/src/helpers/client-options.schema.ts:11 |
Application =
ResultOf
<typeofApplicationFragment
>
Defined in: sdk/js/src/graphql/application.ts:24
Type representing an application entity.
BlockchainNetwork =
ResultOf
<typeofBlockchainNetworkFragment
>
Defined in: sdk/js/src/graphql/blockchain-network.ts:55
Type representing a blockchain network entity.
BlockchainNode =
ResultOf
<typeofBlockchainNodeFragment
>
Defined in: sdk/js/src/graphql/blockchain-node.ts:69
Type representing a blockchain node entity.
CustomDeployment =
ResultOf
<typeofCustomDeploymentFragment
>
Defined in: sdk/js/src/graphql/custom-deployment.ts:33
Type representing a custom deployment entity.
Insights =
ResultOf
<typeofInsightsFragment
>
Defined in: sdk/js/src/graphql/insights.ts:37
Type representing an insights entity.
IntegrationTool =
ResultOf
<typeofIntegrationFragment
>
Defined in: sdk/js/src/graphql/integration-tool.ts:35
Type representing an integration tool entity.
LoadBalancer =
ResultOf
<typeofLoadBalancerFragment
>
Defined in: sdk/js/src/graphql/load-balancer.ts:31
Type representing a load balancer entity.
Middleware =
ResultOf
<typeofMiddlewareFragment
>
Defined in: sdk/js/src/graphql/middleware.ts:56
Type representing a middleware entity.
MiddlewareWithSubgraphs =
ResultOf
<typeofgetGraphMiddlewareSubgraphs
>["middlewareByUniqueName"
]
Defined in: sdk/js/src/graphql/middleware.ts:115
Type representing a middleware entity with subgraphs.
PlatformConfig =
ResultOf
<typeofgetPlatformConfigQuery
>["config"
]
Defined in: sdk/js/src/graphql/platform.ts:56
Type representing the platform configuration.
PrivateKey =
ResultOf
<typeofPrivateKeyFragment
>
Defined in: sdk/js/src/graphql/private-key.ts:44
Type representing a private key entity.
Storage =
ResultOf
<typeofStorageFragment
>
Defined in: sdk/js/src/graphql/storage.ts:35
Type representing a storage entity.
Workspace =
ResultOf
<typeofWorkspaceFragment
>
Defined in: sdk/js/src/graphql/workspace.ts:26
Type representing a workspace entity.
We welcome contributions from the community! Please check out our Contributing guide to learn how you can help improve the SettleMint SDK through bug reports, feature requests, documentation updates, or code contributions.
The SettleMint SDK is released under the FSL Software License. See the LICENSE file for more details.
FAQs
Core JavaScript SDK for integrating SettleMint's blockchain platform services into your applications
The npm package @settlemint/sdk-js receives a total of 1,967 weekly downloads. As such, @settlemint/sdk-js popularity was classified as popular.
We found that @settlemint/sdk-js demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.