1.0.5 • Published 2 months ago

avail-api-wendi v1.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
2 months ago

Avail API Use Cases

Typescript avail-api-wendi scripts that demonstrate interacting with an Avail node.

Run an Avail node on Spheron

Install

Install:

    npm i

Install ts-node if needed

npm i -g avail-api-wendi

Create Local Config

Update: config.ts

export default {
    mnemonic: "", // The secret seed value for account used to sign transactions 
    ApiURL: "",   // Api url
    app_id: 0,    // Application id 
    amount: 0,    // Amount of tokens to transfer
    receiver: ""  // Receiver address
}

Connect to a node:

avail-api-wendi connect.ts 

Subscribes to new blocks:

avail-api-wendi listen_new_blocks.ts 
1.0.5

2 months ago

1.0.1

2 months ago

1.0.0

2 months ago

0.0.1

2 months ago