corebc
v0.4.1
Published
A complete and compact CoreBC library, for Dapps, wallets and any other tools.
Downloads
12
Readme
CoreBC
A complete, compact, and simple library for CoreBC, written in TypeScript.
Features
- Keep your private keys in your client
- Import and export JSON wallets (Gocore, XCB HODLER, CorePass)
- Use meta-classes to generate JavaScript objects from any contract ABI, including ABIv2 and Human-Readable ABI
- Tree-shaking focused; include only what you need during bundling
- Complete functionality to fulfill all your CoreBC needs
- Entirely written in TypeScript with strict types for enhanced security
- CORE License (MIT for ALL dependencies); fully open source
Installation
NodeJS
npm i corebc
Browser (ESM)
The bundled library is available in the ./dist/
folder in this repo.
<script type="module">
import { corebc } from "./dist/corebc.min.js";
</script>
Providers
CoreBC collaborates with an ever-growing list of third-party providers, making it quick and easy to get started. CoreBC provides default keys for each service.
These built-in keys allow you to use corebc.getDefaultProvider()
and begin developing immediately.
However, note that the API keys provided by CoreBC are shared and intentionally throttled. This approach encourages developers to acquire their own keys, which come with additional benefits like faster responses, increased capacity, analytics, and access to features like archival data.
Extension Packages
The corebc
package includes the core functionality required to interact with CoreBC. There are several other packages designed to augment its functionality and improve the user experience.
- Hardware Wallets (@TODO)
License
CORE License (MIT for ALL dependencies).