js-algorand-sdk
js-algorand-sdk copied to clipboard
[v3] RPC Discovery
Overview
Let's go V3 🎉!!!
This ticket is for tracking differences found while integrating v3 beta:
/block/${round}/hashis no longer camel case when usingJSON.stringify: (fixed by usingencodeJSON)healthCheckis returning undefined and not an empty Object- https://github.com/algorand/js-algorand-sdk/issues/885#issuecomment-2307226167
genesisreturns aPromise<string>type and does not appear to encode properly with encodeJSON with spacing (see getGenesis)
I will update this ticket if I run into any more while integrating.
/block/${round}/hashis no longer camel case:
@PhearZero how are you encoding the responses to be displayed on your page? If you use algosdk.encodeJSON (which is what I'd recommend), you should find that the response blockHash field has the same casing as before.
how are you encoding the responses to be displayed on your page?
@jasonpaulos I was using only JSON.stringify previously. Now I've added a custom replacer that only looks for bigint types. I'll definitely switch over to encodeJSON