js-algorand-sdk
js-algorand-sdk copied to clipboard
The official JavaScript SDK for Algorand.
## Problem Our [POST](https://github.com/algorand/js-algorand-sdk/blob/0039284f1ecf77b609acab9da3df1e62679f8531/src/client/client.ts#L256) and [DELETE](https://github.com/algorand/js-algorand-sdk/blob/0039284f1ecf77b609acab9da3df1e62679f8531/src/client/client.ts#L287) request implementations always assume the response is JSON. More context here: https://github.com/algorand/js-algorand-sdk/pull/749#discussion_r1143845809 ## Solution We should improve these handlers to behave like [GET](https://github.com/algorand/js-algorand-sdk/blob/0039284f1ecf77b609acab9da3df1e62679f8531/src/client/client.ts#L228), which...
## Problem Responses from the client are not automatically converted into the defined model types (for all endpoints). We've done this for some endpoints (see https://github.com/algorand/js-algorand-sdk/blob/a89046acaf9502f496fca9d781bf33047c969c01/src/client/v2/algod/getApplicationBoxes.ts#L57-L60), but other endpoints, in...
This is a new feature proposal, to enable multi-language support for Algorand Wallet Passphrases. It was raised as an issue here: https://github.com/algorand/go-algorand/issues/5215 . This PR needs a review before adoption....
* Upgrade to the newly released `algorand-msgpack` library * Remove the `from_obj_for_encoding` and `get_obj_for_encoding` methods. In their place, introduce the following: * An `Encodable` interface with a `toEncodingData` method, and...
## Problem Being able to sign transactions with derived keys from schemes like [BIP32-ed25519](https://acrobat.adobe.com/id/urn:aaid:sc:EU:04fe29b0-ea1a-478b-a886-9bb558a5242a), in which only kL (scalar) is known. The following SDK code in file: `transaction.ts`: ```ts //...
## Problem Despite Algorand Technologies having created [algorand-msgpack](https://github.com/algorand/msgpack-javascript) and [pushed it to NPM](https://www.npmjs.com/package/algorand-msgpack), the Algorand Javascript SDK still relies on [algo-msgpack-with-bigint](https://www.npmjs.com/package/algo-msgpack-with-bigint) ([EvanJRichard's repo](https://github.com/EvanJRichard/msgpack-javascript)). ## Solution Migrate over to algorand-msgpack. ##...
Produce a valid ESM and CJS output, so importing into an ESM project doesn't fallback to using the CJS version. This fixes the following error, when using `algosdk` in an...
Consider swapping our `json-bigint` dependency for `lossless-json`, which appears to be more modern and better maintained
Makes `AtomicTransactionComposer.methodCalls` public. This is useful for modifying/retrieving the method calls in an ATC externally. Specifically useful for https://github.com/algorandfoundation/algokit-utils-ts/pull/234