An open source library for developers to utilize CIP-30 & dcSpark's browser serialization to create reusable transactions on Cardano.
Setup
How to use
How to contribute
Transaction List
npm i @dotare/cardano-transactions
// webpack.config.js
experiments: {
asyncWebAssembly: true,
},
if you don't have access to webpack.config
due to the framework library:
https://stackoverflow.com/a/61722010
https://laravel-mix.com/docs/6.0/quick-webpack-configuration
// app.jsx
import { delegationTx } from "@dotare/cardano-transactions"
<button onClick={() => { delegationTx('5653f2a1aea5318f43a63e0148076348a475d3c89283a8c1eb498fb7', 'eternl', 0) }}>eternl</button>
<button onClick={() => { mintFreeTokenTx('Dotare', 1694, 'flint', 1) }}>flint</button>
Every transaction may have it's own unique parameters to customize the user experience as well as selecting the on-chain network and light wallet.
Be sure to look at the parameters in the Transaction List
- Update our README
with your transaction and link to the dependent library if you did not add it to ./src/transactions/
.
Tx Name | Params | Description | Source Code | Author | Includes TxFee | Fee |
---|---|---|---|---|---|---|
delegationTx | Pool ID (hex): string, WalletName: string, NetworkId: string | int |
A delegation method | https://github.com/dotareio/cardano-delegation/blob/main/src/delegation.ts a modified version using this package's helper methods is under ./src/transactions/ |
DoubleThirty | No | 0% |
mintFreeTokenTx | AssetName: string, Amount: uint, WalletName: string, NetworkId: string | int |
An always true minting method | ./src/transactions/mintFreeTokenTx.ts Do not make tokens you are serious about with this policy anyone can make the same token with the same asset name. |
DoubleThirty | No | 0% |
Ways to support:
Post Issues: https://github.com/dotareio/cardano-transactions/issues/new/choose Templates: Question, Bug, Feature Request, Security Vuln
Delegate: https://www.dotare.io/stake-pool/
References: