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

use-cardano

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

use-cardano

A react context, hook, and set of components that makes interacting with the Cardano blockchain easy

  • 1.0.0-beta.14
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
decreased by-78.95%
Maintainers
1
Weekly downloads
 
Created
Source

use-cardano

use-cardano is a react context, hook, and set of components that makes interacting with the Cardano blockchain easy. It allows you to build web3 applications, connect wallets and performing tasks such as signing transactions and interacting with smart contracts.

Documentation

Visit the documentation site for installation instructions, configuration options, and live examples.

Contributing / Development

This repository contains the source code for use-cardano, a react hook that makes interacting with the Cardano blockchain easy.

Feel free to contribute in any capacity, either by opening an issue, creating a pull request or by giving feedback.

Are you new to Open Source development, or the Cardano dApps eco system? I know it can be daunting, but do not be afraid to reach out in an issue. Any and all contributions are welcome.

Running the project in development mode

We highly recommend pnpm over yarn and npm since it handles local project linking, as well as being very performant.

  1. git clone git@github.com:use-cardano/use-cardano.git
  2. npm i -g pnpm
  3. cd example && pnpm i && cd ..
    • Installs example dependencies
  4. pnpm link ./example/node_modules/react ./example/node_modules/lucid-cardano
    • Links the libraries peer dependencies
  5. pnpm i
    • Installs library dependencies
  6. pnpm dev
    • Runs the library in watch mode, and launches the example app

Reverse Proxy

When running the project locally, the examples site will be automatically served on http://localhost:4200.

Some wallet providers (gerowallet) will not inject itself in the CIP-0030 web bridge if the page is not served over https. To get around this, the site is automatically also served over a reverse proxy using localtunnel. The proxied site will launch automatically in your default browser, and you will be informed that it's being proxied and prompted to continue.

Example app

There is an example app in the /example folder. It is a simple Next.js app that serves both as a testbed and as a reference. Changes to both the use-cardano package as well as the example app will be hot-reloaded during development.

Keywords

FAQs

Package last updated on 23 Dec 2022

Did you know?

Socket

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.

Install

Related posts

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