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
I am running into JsonDecodingException when I try to get account info.
kotlinx.serialization.json.internal.JsonDecodingException: Unexpected JSON token at offset 226: Failed to parse type 'long' for input '18446744073709551615'
JSON input: .....ntEpoch":18446744073709551615,"space":0}},"id":"693dcd28-e7e.....
Here is what my code looks like, I copy/pasted from the readme and just swapped the public key with a variable:
val endPoint =RPCEndpoint.devnetSolana
val network =HttpNetworkingRouter(endPoint)
val solana =Solana(network)
val fetchedBalance = solana.api.getBalance(publicKey).getOrElse {
balanceFetchedSuccessfully =false0L
}
balance = fetchedBalance /1000000000.0// This part fails, copy/pasted from the readme.val serializer =AccountInfoSerializer(BorshAsBase64JsonArraySerializer((AccountInfoData.serializer())))
val account = solana.api.getAccountInfo(serializer, publicKey).getOrThrow()
if (account !=null) {
isExecutable = account.executable
}
The text was updated successfully, but these errors were encountered:
I am running into
JsonDecodingException
when I try to get account info.Here is what my code looks like, I copy/pasted from the readme and just swapped the public key with a variable:
The text was updated successfully, but these errors were encountered: