You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We didn't implement this in the part 2 of the RPC implementation because we don't have a single method that returns a GetBalanceObject for a token in a given address
We could do multiple calls on existing methods, but I think the ideal would be to have this method in the lib.
token(TokenInfo): We can get it using wallet.getTokenDetails(token);
balance(Balance): We can get it using await wallet.getAddressInfo(address, { token })
tokenAuthorities(AuthoritiesBalance): This is a hard one, we do have a method to get the authority utxos for a given token (getAuthorityUtxos), but we don't have a mechanism for filtering authorities for a given address. My suggestion would be to refactor getMintAuthority and getMeltAuthority to accept an option filter_method which would be passed down to this.store.selectUtxos as a UtxoFilterOptions option. We would have to implement it in the new facade differently, probably using the same method in the wallet-service lambda.
transactions: this comes from the getTokenDetails method.
lockExpires: I'm not sure, would require a deeper investigation, I couldn't find a method that returns lockExpires for a given address and token
The text was updated successfully, but these errors were encountered:
We didn't implement this in the part 2 of the RPC implementation because we don't have a single method that returns a
GetBalanceObject
for atoken
in a givenaddress
We could do multiple calls on existing methods, but I think the ideal would be to have this method in the lib.
This is the
GetBalanceObject
type:TokenInfo
): We can get it usingwallet.getTokenDetails(token);
Balance
): We can get it usingawait wallet.getAddressInfo(address, { token })
AuthoritiesBalance
): This is a hard one, we do have a method to get the authority utxos for a given token (getAuthorityUtxos
), but we don't have a mechanism for filtering authorities for a givenaddress
. My suggestion would be to refactorgetMintAuthority
andgetMeltAuthority
to accept an optionfilter_method
which would be passed down tothis.store.selectUtxos
as aUtxoFilterOptions
option. We would have to implement it in the new facade differently, probably using the same method in the wallet-service lambda.getTokenDetails
method.lockExpires
for a given address and tokenThe text was updated successfully, but these errors were encountered: