1.13.0 • Published 1 month ago

@bitpandacustody/trustvault-nodejs-sdk v1.13.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 month ago

trustvault-nodejs-sdk

The TrustVault Node.js SDK allows Node.js clients to interact with TrustVault. It includes the following core components.

TrustVault - client interface to interact with TrustVault (webhooks, transaction, wallet) AwsKmsKeyStore - Class that wraps AWS KMS key for signing transaction - Bitcoin and Ethereum Transaction Class (validate and sign transaction digest(s)) wallet - Policy Class (validate and sign policyChangeRequest digest) signature - verify and produce sign data decoder - asn1-der decoder encoder - asn1-der encoder

Installation

$ npm i @bitpandacustody/trustvault-nodejs-sdk
# Or:
$ yarn add @bitpandacustody/trustvault-nodejs-sdk

Getting Started

// common
const { TrustVault } = require("@bitpandacustody/trustvault-nodejs-sdk");

// es6
import { TrustVault } from "@bitpandacustody/trustvault-nodejs-sdk";

// sandbox env
const trustVaultSandbox = new TrustVault({ apiKey: "<TRUST_VAULT_API_KEY>", environment: "sandbox" });

const trustVault = new TrustVault({ apiKey: "<TRUST_VAULT_API_KEY>"});

You can find more detailed documentation and examples in our Developer Documentation.