1.0.0 - CashTokens and BCMR
- Breaking release. Project is converted into ESM package to support our core dependency libauth v2.
- Browser package is now async and exports
__mainnetPromise
which must be awaited.
It resolves to a module containing the usual mainnet types and functions
To preserve the old behaviour you can change your html code in a following way:<head> ... <script defer src="mainnet.js"></script> </head> <body> <script>document.addEventListener("DOMContentLoaded", async (event) => Object.assign(globalThis, await __mainnetPromise))</script> ... </body>
- Add BCMR support - https://github.com/bitjson/chip-bcmr
- Add CashTokens support - https://github.com/bitjson/cashtokens
Cashtokens are available on chipnet, to connect to chipnet
in browser and node:DefaultProvider.servers.testnet = ["wss://chipnet.imaginary.cash:50004"]
in REST server set the environment variable -export ELECTRUM_TESTNET=wss://chipnet.imaginary.cash:50004