When using the SDK for calling specific endpoints with customized query param, it has a hard time to just pass in one desired query param as it has to follow the specific orders. For example if I only want to restrict the number of utxos returned by Address UTxO, I have to do something like this, which is really annoying:
It is also good to make the query param object typed with default value same as the actual api behaviour.
Side Note
If I understand the SDK correctly, this.maestroClient.addresses.utxosByAddress equal to this endpoint, while the SDK has not updated yet to accept asset as parameter.
As this is a systematic breaking change, I might better only contribute after the decision is made.
@SIDANWhatever We have brought this up internally and know that it's a problem. Please go ahead and proceed with this change. It will be tremendously helpful.
Problem
When using the SDK for calling specific endpoints with customized query param, it has a hard time to just pass in one desired query param as it has to follow the specific orders. For example if I only want to restrict the number of
utxos
returned byAddress UTxO
, I have to do something like this, which is really annoying:Possible Solution
To change all query param with an object, where the query param
key
to be the object key and the query paramvalue
to be the object valueIt is also good to make the query param object typed with default value same as the actual api behaviour.
Side Note
this.maestroClient.addresses.utxosByAddress
equal to this endpoint, while the SDK has not updated yet to acceptasset
as parameter.