Skip to content

JavaScript SDK for interacting with Cardano, providing various key management options, with support for popular hardware wallets

License

Notifications You must be signed in to change notification settings

will-break-it/cardano-js-sdk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cardano JS SDK

PostIntegration Release


Overview

A suite of TypeScript packages suitable for both Node.js and browser-based development.

Supported Environments

Packages are distributed as both CommonJS and ESM modules.

  • Node.js >=16.20.2
    • using with type="module" requires --experimental-specifier-resolution=node flag
  • Browser via bundlers (see example webpack config)

Getting Started

The GETTING_STARTED guide provides a quick way to start experimenting.

Testing

Deployments

Automatic deployments are done for:

Manual deployments can be done via STD Workflow

  • Click 'Run workflow'
  • Select branch
  • Check checkboxes for environments that should be deployed
  • Click 'Run workflow'

Development

A Yarn Workspace maintaining a single version across all packages.

System Requirements

Clone

git clone \
  https://github.com/input-output-hk/cardano-js-sdk.git \
  && cd cardano-js-sdk

Install and Build

nvm install && \
nvm use && \
DETECT_CHROMEDRIVER_VERSION=true yarn global add chromedriver && \
yarn install && \
yarn build

The web extension e2e tests uses chromedriver. chromedriver and your Chrome browser versions should match, if they don’t the driver will error. If you have issues, try running yarn workspace @cardano-sdk/e2e remove chromedriver && yarn workspace @cardano-sdk/e2e add chromedriver to reinstall the latest version.

Run Tests

yarn test

or

yarn test:debug

Lint

yarn lint
yarn lint --fix

Cleanup

yarn cleanup

Update Cardano configuration subrepo

With yarn

Requires git-subrepo to be installed.

yarn config:update

With nix

Requires Nix, will install git-subrepo for you.

nix run .#config-update

Attic

Previously supported features, no longer supported, but packed with a reference branch.

Distribute

Pack

./scripts/pack.sh

Publish to npm.org

./scripts/publish.sh

Generate Docs

yarn docs

📖 Documentation

Possible issues

About

JavaScript SDK for interacting with Cardano, providing various key management options, with support for popular hardware wallets

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 77.8%
  • PLpgSQL 10.7%
  • Nix 8.9%
  • JavaScript 1.3%
  • Shell 1.2%
  • Dockerfile 0.1%