Skip to content
hongzhongxPublic

About

Taiyi blockchain RPC client

Resources

Stars

2 stars

Watchers

1 watching

Forks

Repository files navigation

ctaiyi

Robust javascript client library for taiyi blockchain

Package Version

Installation

npm install @taiyinet/ctaiyi

Usage

import { Client, http } from '@taiyinet/ctaiyi'

const client = new Client({
  transport: http('https://<node-url>')
})

for await (const block of client.blockchain.getBlocks()) {
  console.log(`New block, id: ${block.block_id}`)
}

Development

Requirement

  • Node.js >= 22.13.1
  • pnpm >= 10.0.0

Install

# enable corepack
core enable
pnpm install

Run all tests

pnpm test

Build

pnpm build

FAQ and Troubleshooting

ctaiyi supports all modern browsers (Chrome, Edge, Firefox, etc) & runtime environments (Node 22+, Deno, Bun, etc).

ctaiyi uses modern EcmaScript features such as:


Share and Enjoy!

About

Taiyi blockchain RPC client

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages