You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The call to /cosmos/auth/v1beta1/account_info/{address}
with a valid/legit and already funded address fails with the following error message:
{
"code": 13,
"message": "Expecting non nil value to create a new Any: failed packing protobuf message to Any",
"details": []
}
This happens to addresses derived from randomly generated public/private key pairs prior not known to the chain (e.g. in the case of HW wallet usage).
A workaround is to call /cosmos/auth/v1beta1/accounts and filter for the requested address. This call can resolve the account information without knowing the corresponding public key to the requested address.
After creating and broadcasting one transaction, the public key is known to the chain, and the issue no longer appears on the /cosmos/auth/v1beta1/account_info/{address} API call.
Version
Cosmos SDK 0.47.3
Steps to Reproduce
Create a random public/private key pair so that the public key is unknown to the chain, and derive the address from the public key.
fund the address (via a faucet or other transaction) so that this funding transaction will implicitly create the account of the address on-chain.
eckelj
changed the title
[Bug]: /cosmos/auth/v1beta1/account_info/{address} returns 13 if public key is not known to the account object on-chain
[Bug]: /cosmos/auth/v1beta1/account_info/{address} returns 13 if public key is unknown to the account object on-chain
Jul 31, 2023
Summary of Bug
The call to
/cosmos/auth/v1beta1/account_info/{address}
with a valid/legit and already funded address fails with the following error message:
This happens to addresses derived from randomly generated public/private key pairs prior not known to the chain (e.g. in the case of HW wallet usage).
A workaround is to call
/cosmos/auth/v1beta1/accounts
and filter for the requested address. This call can resolve the account information without knowing the corresponding public key to the requested address.After creating and broadcasting one transaction, the public key is known to the chain, and the issue no longer appears on the
/cosmos/auth/v1beta1/account_info/{address}
API call.Version
Cosmos SDK 0.47.3
Steps to Reproduce
/cosmos/auth/v1beta1/account_info/{address}
.The text was updated successfully, but these errors were encountered: