-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
account info type missing typed fields and config values #12
Comments
Interesting. This gives .getAccountInfo("nick6zJc6HpW3kfBm4xS2dmbuVRyb5F3AnUvj5ymzR5", {}) This does not: .getAccountInfo(address("nick6zJc6HpW3kfBm4xS2dmbuVRyb5F3AnUvj5ymzR5"), {}) |
|
These docs say |
@steveluscher Oh weird, I've checked everywhere and I can't find record of us ever using the |
Yeah, so long as it’s actually there, everywhere we use AccountInfoBase, I guess it’s time, @lorisleiva! |
Okay I've just checked everywhere we use this
I'll now work on a PR that adds the |
looks like it, I will get those docs updated today! |
@lorisleiva I will get these updated in the docs. I have had it on the todo list to comb through all the rpc docs and validate the inputs and responses for too long now. |
I spent some time tonight fighting with the TypeScript Intellisense problem (ie. that it won't cough up the Wouldn't it be weird if this bug from 2014 was back. microsoft/TypeScript#646 All in all, sounds like this: microsoft/TypeScript#44183 |
Why not just add |
type GetAccountInfoApiCommonConfig = Readonly<{
// Defaults to `finalized`
commitment?: Commitment;
+ encoding?: 'base58' | 'base64' | 'base64+zstd' | 'jsonParsed',
// The minimum slot that the request can be evaluated at
minContextSlot?: Slot;
}>; It didn't help. |
hmm darn :/ |
Overview
the
rpc.getAccountInfo()
function is:encoding
field in the config (see image 1)space
field in the returned value (see image 2)Steps to reproduce
use the
getAccountInfo
rpc method:Description of bug
the
rpc.getAccountInfo()
function should accept all the config settings for thegetAccountInfo
rpc methodand the response value should be typed to all response fields
The text was updated successfully, but these errors were encountered: