New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@settlemint/sdk-js

Package Overview
Dependencies
Maintainers
0
Versions
1885
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@settlemint/sdk-js - npm Package Compare versions

Comparing version 0.4.34-maina06b7de to 0.4.34-mainabe86e7

26

package.json
{
"name": "@settlemint/sdk-js",
"description": "SettleMint SDK, integrate SettleMint into your application with ease.",
"version": "0.4.34-maina06b7de",
"version": "0.4.34-mainabe86e7",
"type": "module",

@@ -24,11 +24,15 @@ "private": false,

"files": ["dist"],
"main": "./dist/settlemint.cjs",
"module": "./dist/settlemint.mjs",
"types": "./dist/settlemint.d.ts",
"exports": {
"./*": {
"./package.json": "./package.json",
".": {
"import": {
"types": "./dist/*.d.ts",
"default": "./dist/*.mjs"
"types": "./dist/settlemint.d.ts",
"default": "./dist/settlemint.mjs"
},
"require": {
"types": "./dist/*.d.cts",
"default": "./dist/*.cjs"
"types": "./dist/settlemint.d.cts",
"default": "./dist/settlemint.cjs"
}

@@ -38,2 +42,3 @@ }

"scripts": {
"codegen": "gql-tada generate-schema ${CONSOLE_GRAPHQL:-https://console.settlemint.com/api/graphql}",
"build": "tsup-node",

@@ -48,8 +53,9 @@ "dev": "tsup-node --watch",

"devDependencies": {
"@0no-co/graphqlsp": "^1.12.16"
"@0no-co/graphqlsp": "1.12.16"
},
"dependencies": {
"gql.tada": "^1.8.9",
"graphql-request": "^7.1.0",
"zod": "^3.23.8"
"gql.tada": "^1",
"graphql-request": "^7",
"zod": "^3",
"@settlemint/sdk-utils": "0.4.34-mainabe86e7"
},

@@ -56,0 +62,0 @@ "peerDependencies": {},

@@ -10,7 +10,7 @@ <p align="center">

</p>
<br/>
<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" alt="License"></a>
<a href="https://www.npmjs.com/package/@settlemint/sdk" rel="nofollow"><img src="https://img.shields.io/npm/dw/@settlemint/sdk" alt="npm"></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://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">NPM</a>
<a href="https://www.npmjs.com/package/@settlemint/sdk-js">NPM</a>
<span>&nbsp;&nbsp;•&nbsp;&nbsp;</span>

@@ -31,2 +31,145 @@ <a href="https://github.com/settlemint/sdk/issues">Issues</a>

## Getting started
## Table of Contents
- [Installation](#installation)
- [Usage](#usage)
- [API Reference](#api-reference)
- [Examples](#examples)
- [Contributing](#contributing)
- [License](#license)
## Installation
To install the SettleMint SDK, you can use one of the following package managers:
```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:
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:
### 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
We welcome contributions to the SettleMint SDK! If you'd like to contribute, please follow these steps:
1. Fork the repository
2. Create a new branch for your feature or bug fix
3. Make your changes and commit them with a clear commit message
4. Push your changes to your fork
5. Create a pull request to the main repository
Please ensure that your code follows the existing style and includes appropriate tests and documentation.
## License
The SettleMint SDK is released under the [FSL Software License](https://fsl.software). See the [LICENSE](LICENSE) file for more details.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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