1.0.4-alpha.1-blockfrost • Published 1 year ago

@andamiojs/core v1.0.4-alpha.1-blockfrost

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
1 year ago

AndamioJS is a JavaScript library designed for interacting with Andamio contracts deployed on the Cardano blockchain.

Documentation

Explore the detailed documentation generated by Typedoc at andamiojs.andamio.io.

Installation

Install AndamioJS using npm:

npm install @andamiojs/core

Installation Note: If you are using the Next.js app router, use v1.y.z-alpha.1 instead of v1.y.z-alpha to avoid wasm errors.

Querying Data

Data querying functions in AndamioJS typically begin with the prefix query. For example, queryTreasuryInfo provides information about the treasury.

Each validator has a corresponding query<validator name>Info function that returns relevant information. Here's an example using queryAssignmentValidatorInfo:

const AssignmentValidatorInfo = await queryAssignmentValidatorInfo(andamioConfig);

Transactions

AndamioJS handles contract transactions through classes with names ending in "Tx".

The library also provides helper functions that initialize and load the required variables for transactions, named prepare<transaction name>. For instance, the following demonstrates the implementation of AcceptAssignmentTx:

const ACCEPT_ASSIGNMENT_TX = await prepareAcceptAssignmentTx(wallet, andamioConfig, props.assignment);
const res = await ACCEPT_ASSIGNMENT_TX.runTx();

Explore the various transaction classes and their corresponding helper functions for seamless interaction with Andamio contracts.

1.0.4-alpha.1

1 year ago

1.0.3-alpha.1

1 year ago

1.0.2-alpha.1

1 year ago

1.0.1-alpha

1 year ago

1.0.1-alpha.1

1 year ago

1.0.0-alpha.1

1 year ago

1.0.0-alpha

1 year ago

0.0.25

1 year ago

0.0.26

1 year ago

0.0.25-0

2 years ago

0.0.24

2 years ago

0.0.22

2 years ago

0.0.23

2 years ago

0.0.21

2 years ago

0.0.10

2 years ago

0.0.11

2 years ago

0.0.12

2 years ago

0.0.13

2 years ago

0.0.14

2 years ago

0.0.15

2 years ago

0.0.16

2 years ago

0.0.17

2 years ago

0.0.18

2 years ago

0.0.19

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago