Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@settlemint/sdk-utils

Package Overview
Dependencies
Maintainers
0
Versions
1353
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@settlemint/sdk-utils - npm Package Compare versions

Comparing version 0.8.6-pre7a291b8 to 0.8.6-predc2ddfc

5

package.json
{
"name": "@settlemint/sdk-utils",
"description": "SettleMint SDK, integrate SettleMint into your application with ease.",
"version": "0.8.6-pre7a291b8",
"version": "0.8.6-predc2ddfc",
"type": "module",

@@ -58,3 +58,4 @@ "private": false,

"typecheck": "tsc --noEmit",
"publish-npm": "bun publish --tag ${TAG} --access public || exit 0"
"publish-npm": "bun publish --tag ${TAG} --access public || exit 0",
"prepack": "cp ../../LICENSE ."
},

@@ -61,0 +62,0 @@ "devDependencies": {

127

README.md

@@ -13,4 +13,4 @@ <p align="center">

<a href="https://github.com/settlemint/sdk/actions?query=branch%3Amain"><img src="https://github.com/settlemint/sdk/actions/workflows/build.yml/badge.svg?event=push&branch=main" alt="CI status" /></a>
<a href="https://fsl.software" rel="nofollow"><img src="https://img.shields.io/npm/l/@settlemint/sdk-js" alt="License"></a>
<a href="https://www.npmjs.com/package/@settlemint/sdk-js" rel="nofollow"><img src="https://img.shields.io/npm/dw/@settlemint/sdk-js" alt="npm"></a>
<a href="https://fsl.software" rel="nofollow"><img src="https://img.shields.io/npm/l/@settlemint/sdk-utils" alt="License"></a>
<a href="https://www.npmjs.com/package/@settlemint/sdk-utils" rel="nofollow"><img src="https://img.shields.io/npm/dw/@settlemint/sdk-utils" alt="npm"></a>
<a href="https://github.com/settlemint/sdk" rel="nofollow"><img src="https://img.shields.io/github/stars/settlemint/sdk" alt="stars"></a>

@@ -24,3 +24,3 @@ </p>

<span>&nbsp;&nbsp;•&nbsp;&nbsp;</span>
<a href="https://www.npmjs.com/package/@settlemint/sdk-js">NPM</a>
<a href="https://www.npmjs.com/package/@settlemint/sdk-utils">NPM</a>
<span>&nbsp;&nbsp;•&nbsp;&nbsp;</span>

@@ -33,129 +33,20 @@ <a href="https://github.com/settlemint/sdk/issues">Issues</a>

- [Installation](#installation)
- [About](#about)
- [Usage](#usage)
- [API Reference](#api-reference)
- [Examples](#examples)
- [Contributing](#contributing)
- [License](#license)
## Installation
## About
To install the SettleMint SDK, you can use one of the following package managers:
The SettleMint Utils SDK provides a collection of shared utilities and helper functions used across the SettleMint SDK packages. It includes common functionality for configuration management, error handling, validation, and type definitions that ensure consistency and reliability across the SDK ecosystem.
```bash
# Using npm
npm install @settlemint/sdk
# Using yarn
yarn add @settlemint/sdk
# Using pnpm
pnpm add @settlemint/sdk
# Using Bun
bun add @settlemint/sdk
```
We recommend using Bun for faster installation and better performance.
## Usage
To use the SettleMint SDK in your Node.js application, follow these steps:
TODO: define default
1. Import the SDK:
```javascript
import { createSettleMintClient } from '@settlemint/sdk';
```
2. Create a client instance:
```javascript
const client = createSettleMintClient({
accessToken: 'your_access_token',
instance: 'https://console.settlemint.com'
});
```
3. Use the client to interact with SettleMint resources:
```javascript
// Example: List workspaces
const workspaces = await client.workspace.list();
console.log(workspaces);
```
## API Reference
The SettleMint SDK provides access to various resources. Here's an overview of the available methods:
TODO
### Workspace
- `workspace.list()`: List all workspaces and their applications
- `workspace.read(workspaceId)`: Read a specific workspace and its applications
### Blockchain Network
- `blockchainNetwork.list(applicationId)`: List blockchain networks for a given application
- `blockchainNetwork.read(blockchainNetworkId)`: Read a specific blockchain network
### Blockchain Node
- `blockchainNode.list(applicationId)`: List blockchain nodes for a given application
- `blockchainNode.read(blockchainNodeId)`: Read a specific blockchain node
### Middleware
- `middleware.list(applicationId)`: List middlewares for a given application
- `middleware.read(middlewareId)`: Read a specific middleware
### Integration Tool
- `integrationTool.list(applicationId)`: List integration tools for a given application
- `integrationTool.read(integrationId)`: Read a specific integration tool
### Storage
- `storage.list(applicationId)`: List storage items for a given application
- `storage.read(storageId)`: Read a specific storage item
### Private Key
- `privateKey.list(applicationId)`: List private keys for a given application
- `privateKey.read(privateKeyId)`: Read a specific private key
### Insights
- `insights.list(applicationId)`: List insights for a given application
- `insights.read(insightsId)`: Read a specific insight
## Examples
Here are some examples of how to use the SettleMint SDK:
### List Workspaces
```javascript
const client = createSettleMintClient({
accessToken: 'your_access_token',
instance: 'https://console.settlemint.com'
});
const workspaces = await client.workspace.list();
console.log(workspaces);
```
### Read a Specific Blockchain Network
```javascript
const client = createSettleMintClient({
accessToken: 'your_access_token',
instance: 'https://console.settlemint.com'
});
const networkId = 'your_network_id';
const network = await client.blockchainNetwork.read(networkId);
console.log(network);
```
## Contributing

@@ -175,2 +66,2 @@

The SettleMint SDK is released under the [FSL Software License](https://fsl.software). See the [LICENSE](LICENSE) file for more details.
The SettleMint SDK is released under the [FSL Software License](https://fsl.software). See the [LICENSE](LICENSE) file for more details.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc