nifemibosun/bc-web3js ? reverse-engineered prompt
Reverse engineered prompt
Build me a small TypeScript SDK for connecting to the ByteChain Testnet Alpha.
I want it to let me create a wallet, load an existing account from a private key, check an address balance, and send signed transfers from the app. It should also be able to query the chain, like fetching a block by height, getting the latest block, reading the tx pool, getting a range of blocks, and returning the full chain.
Please make the API simple enough that I can do things like new BCWeb3(nodeUrl), createAccount(), loadAccount(privateKey), getBalance(), and transfer(amount, recipient). Use TypeScript and keep the code clean and easy to understand.
If you need to look up anything current about how ByteChain works or best practices for blockchain client code, go ahead and check online docs first.
Are you gonna build this?
make sure you review the code using coderabbit