0

Is there a way to convert all the account keys returned from the getTransaction RPC call into a readable address format. For context the first public key should be "H8sMJSCQxfKiFTCfDR3DUMLPwcRbM61LGFJ8N4dK3WjS" when I use something like the solana beach api. Here is the code I am running: https://github.com/toshvelaga/solana-rpc/blob/main/getTx.js

enter image description here

1 Answer 1

1

Use .toBase58() method on those keys.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.