diff --git a/wallet/usdc.go b/wallet/usdc.go index e8643daf..c40f696b 100644 --- a/wallet/usdc.go +++ b/wallet/usdc.go @@ -78,7 +78,7 @@ func queryUSDCBalanceRPC(address string) (float64, error) { if err := json.Unmarshal(respBody, &rpcResp); err != nil { return 0, fmt.Errorf("decode rpc response: %w", err) } - if len(rpcResp.Error) > 0 { + if len(rpcResp.Error) > 0 && string(rpcResp.Error) != "null" { return 0, fmt.Errorf("rpc error: %s", string(rpcResp.Error)) }