Sednaoui / Candide

EOA wallet w/ cross-network bridge support for instant transactions
2 stars 1 forks source link

update zapper api to check balances to v2 #76

Open Sednaoui opened 2 years ago

Sednaoui commented 2 years ago

Zapper Account Balance endpoint:

Currently Candide uses Zapper V1 to check for account balances on V1 for mainnet, optimism and arbitrum. The returned balance only returns ETH at the moment. The goal is to migrate to v2, and display ERC-20s as well (since the new endpoints also displays erc-20s). The balances are shown by network, and not across all networks.

https://github.com/Sednaoui/Candide/blob/59abe61e79f66b461082b007429e1eacf6b50b94/wallet/src/lib/zapper/index.ts#L12

CherryDT commented 2 years ago

Note: Public API is no longer available and this key is no longer working. People need to request a private API key now.

Sednaoui commented 2 years ago

Note: Public API is no longer available and this key is no longer working. People need to request a private API key now.

@CherryDT you're right. I just noticed that the public APIs aren't available anymore. We do have a private API internally that we will be using in production, we will use it one we migrate to zapper v2.