diff --git a/crates/torii/graphql/src/object/erc/token_balance.rs b/crates/torii/graphql/src/object/erc/token_balance.rs index fd383746cc..7a4481ff8e 100644 --- a/crates/torii/graphql/src/object/erc/token_balance.rs +++ b/crates/torii/graphql/src/object/erc/token_balance.rs @@ -103,7 +103,13 @@ async fn fetch_token_balances( JOIN tokens t ON b.token_id = t.id JOIN contracts c ON t.contract_address = c.contract_address" ); - let mut conditions = vec!["(b.account_address = ?)".to_string()]; + + // Only select balances for the given account address and non-zero balances. + let mut conditions = vec![ + "(b.account_address = ?)".to_string(), + "b.balance != '0x0000000000000000000000000000000000000000000000000000000000000000'" + .to_string(), + ]; let mut cursor_param = &connection.after; if let Some(after_cursor) = &connection.after {