diff --git a/api/accounts.go b/api/accounts.go index 62bd78ca0..b25f8e8f3 100644 --- a/api/accounts.go +++ b/api/accounts.go @@ -135,7 +135,7 @@ func (a *API) accountHandler(_ *apirest.APIdata, ctx *httprouter.HTTPContext) er // If the account does not exist in state, try to retrieve it from the indexer. // This is a fallback for the case where the account is not in state but it is in the process archive. if acc == nil { - indexerEntities := a.indexer.EntityList(1, 0, ctx.URLParam("address")) + indexerEntities := a.indexer.EntityList(1, 0, hex.EncodeToString(addr.Bytes())) if len(indexerEntities) == 0 { return ErrAccountNotFound.With(addr.Hex()) }