Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nativeBalance is NOT returned in client.rpc.getAssetsByOwner #149

Closed
tim-moonpay opened this issue Oct 29, 2024 · 1 comment · Fixed by #162
Closed

nativeBalance is NOT returned in client.rpc.getAssetsByOwner #149

tim-moonpay opened this issue Oct 29, 2024 · 1 comment · Fixed by #162

Comments

@tim-moonpay
Copy link

tim-moonpay commented Oct 29, 2024

We are trying to retrieve the nativeBalance from the client but it is not returning it.

The type only contains the following but direct RPC returns nativeBalance, please advise

type GetAssetResponseList = {
        grand_total?: number;
        total: number;
        limit: number;
        page: number;
        items: GetAssetResponse[];
    };
@MawcelSer
Copy link
Contributor

MawcelSer commented Jan 23, 2025

Created #162 to fix this.

In the mean time you can access it like so:

const nativeBalance = (response as any).nativeBalance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants