0.0.63 • Published 7 months ago

mynth-use-cardano v0.0.63

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

mynth-use-cardano

mynth-use-cardano is forked from use-cardano which 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. Visit the official documentation for installation instructions, configuration options, and live examples.

The package leverages lucid for transaction building and off-chain code to interact with smart contracts. For more information on that, visit the lucid documentation.

In order to allow walletconnect too, create an account on Wallet Connect cloud and add the projectId in /config/mynth-use-cardano-options.ts

Minimal Example

tsx filename="minimal-example.tsx" copy
import "mynth-use-cardano/styles/use-cardano.css"
import { useCardano, CardanoProvider, CardanoWalletSelector, CardanoToaster } from "mynth-use-cardano"

const Content = () => {
  const { account } = useCardano()

  return (
    <>
      <CardanoWalletSelector />

      <div>Connected Address: {account.address}</div>
    </>
  )
}

const App = () => (
  <CardanoProvider options={options}>
    <Content />

    <CardanoToaster />
  </CardanoProvider>
)

Contributing / Development

See the contributing doc for instructions on how to contribute to the development of the library.

LICENSE

MIT, see LICENSE for more information.

Publishing

Whenever a PR is merged into the main branch, it will automatically trigger a version update and publish the new version while updating the current repo with the new version. To assist this, get a Personal access token from Github account and save it as a repository secret with the name PAT. Similarly, get npm access token and save it as a repository secret with the name NPM_AUTH_TOKEN

0.0.63

7 months ago

0.0.61

7 months ago

0.0.59

8 months ago

0.0.58

10 months ago

0.0.55

10 months ago

0.0.51

10 months ago

0.0.50

10 months ago

0.0.45

10 months ago

0.0.44

10 months ago

0.0.43

10 months ago

0.0.42

10 months ago

0.0.41

10 months ago

0.0.40

10 months ago

0.0.39

11 months ago

0.0.36

11 months ago

0.0.34

11 months ago

0.0.24

11 months ago

0.0.23

11 months ago

0.0.22

11 months ago

0.0.21

11 months ago

0.0.15

11 months ago

0.0.14

11 months ago

0.0.7

11 months ago

0.0.6

11 months ago

0.0.5

11 months ago

0.0.4

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago

0.0.1

11 months ago