reown-com / appkit

The full stack toolkit to build onchain app UX
https://reown.com/appkit
Apache License 2.0
4.94k stars 1.41k forks source link

[feature] Check the wallet balance in the view and it is 0,HTTP Req 404 #3225

Closed Jacky-Young1123 closed 3 days ago

Jacky-Young1123 commented 1 week ago

What problem does this new feature solve?

When I used JavaScript to integrate appkit, the following error occurred. Request address: https://rpc.walletconnect.org/v1/account/F9hEqGcPRudRn2SNCDFYL2XoTQk16ra2YcBkvjC7hcVp/balance?currency=usd&projectId= {projectId}&chainId=5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp&clientId=did%3Akey%3Az6MkiQ758M4AvTgujLn2RpvN5jepDWXtq1sk7k2wkPNuW image image

Error message: {status: "FAILED", reasons: [{field: "address", description: "The address provided is invalid"}]} reasons: [{field: "address", description: "The address provided is invalid"}]0: {field: "address", description: "The address provided is invalid"} description: "The address provided is invalid" field : "address" status : "FAILED" image

And check the wallet balance in the view and it is 0 image

Describe the solution you'd like

Can this problem be solved?

mits87 commented 1 week ago

Same issue here for testnets for example arbitrum sepolia:

image Screenshot 2024-11-11 at 12 48 39
Emmaward090 commented 1 week ago

What problem does this new feature solve?

When I used JavaScript to integrate appkit, the following error occurred. Request address: https://rpc.walletconnect.org/v1/account/F9hEqGcPRudRn2SNCDFYL2XoTQk16ra2YcBkvjC7hcVp/balance?currency=usd&projectId= {projectId}&chainId=5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp&clientId=did%3Akey%3Az6MkiQ758M4AvTgujLn2RpvN5jepDWXtq1sk7k2wkPNuW image image

Error message: {status: "FAILED", reasons: [{field: "address", description: "The address provided is invalid"}]} reasons: [{field: "address", description: "The address provided is invalid"}]0: {field: "address", description: "The address provided is invalid"} description: "The address provided is invalid" field : "address" status : "FAILED" image

And check the wallet balance in the view and it is 0 image

Describe the solution you'd like

Can this problem be solved?

It seems like you're encountering an error related to an invalid address when trying to check the wallet balance using JavaScript and Appkit integration. The error message indicates that the address provided is considered invalid, leading to a failed status. This could be the reason why the wallet balance is showing as 0 in the view. Double-check the address you're using and ensure it's correctly formatted to avoid this issue. If you need further assistance with resolving this, feel free to share more details! @Jacky-Young1123 @mits87

mits87 commented 1 week ago

@Emmaward090 What do you mean by invalid address? I'm connecting to the metmask wallet and there I have all money in arbitrum sepolia.

Btw. Few versions ago I didn't see this error even if I used the same wallet.

vanyasav commented 6 days ago

Same issue here, after updating to 1.3.2 image

https://github.com/vanyasav/angular-reown-wagmi/tree/fetch_error

Beor18 commented 4 days ago

Same problem

rtomas commented 3 days ago

Where are working on a fix ... will be available soon.

rtomas commented 3 days ago

https://linear.app/reown/issue/APKT-1440/%5Bbug%5D-err-400-when-getting-balance-from-solana

rtomas commented 3 days ago

Please update to latest. V1.4.0