GetAccountInfoApi
GetAccountInfoApi =
object
Methods
getAccountInfo()
Call Signature
getAccountInfo(
address
,config
):SolanaRpcResponse
<GetAccountInfoApiResponse
<AccountInfoWithBase64EncodedData
>>
Fetches information associated with the account at the given address.
If the account has data, it will be returned in the response as a tuple whose first element is a base64-encoded string.
Parameters
Parameter | Type |
---|---|
address | Address |
config | Readonly <{ commitment? : Commitment ; encoding : "base58" | "base64" | "base64+zstd" | "jsonParsed" ; minContextSlot? : Slot ; }> & Readonly <{ dataSlice? : DataSlice ; }> & Readonly <{ encoding : "base64" ; }> |
Returns
SolanaRpcResponse
<GetAccountInfoApiResponse
<AccountInfoWithBase64EncodedData
>>
See
https://solana.com/docs/rpc/http/getaccountinfo
Call Signature
getAccountInfo(
address
,config
):SolanaRpcResponse
<GetAccountInfoApiResponse
<AccountInfoWithBase64EncodedZStdCompressedData
>>
Fetches information associated with the account at the given address.
If the account has data, it will first be compressed using ZStandard and the result will be returned in the response as a tuple whose first element is a base64-encoded string.
Parameters
Parameter | Type |
---|---|
address | Address |
config | Readonly <{ commitment? : Commitment ; encoding : "base58" | "base64" | "base64+zstd" | "jsonParsed" ; minContextSlot? : Slot ; }> & Readonly <{ dataSlice? : DataSlice ; }> & Readonly <{ encoding : "base64+zstd" ; }> |
Returns
SolanaRpcResponse
<GetAccountInfoApiResponse
<AccountInfoWithBase64EncodedZStdCompressedData
>>
See
https://solana.com/docs/rpc/http/getaccountinfo
Call Signature
getAccountInfo(
address
,config
):SolanaRpcResponse
<GetAccountInfoApiResponse
<AccountInfoWithJsonData
>>
Fetches information associated with the account at the given address.
If the account has data, the server will attempt to process it using a parser specific to the account's owning program. If successful, the parsed data will be returned in the response as JSON. Otherwise, the raw account data will be returned in the response as a tuple whose first element is a base64-encoded string.
Parameters
Parameter | Type |
---|---|
address | Address |
config | Readonly <{ commitment? : Commitment ; encoding : "base58" | "base64" | "base64+zstd" | "jsonParsed" ; minContextSlot? : Slot ; }> & Readonly <{ encoding : "jsonParsed" ; }> |
Returns
SolanaRpcResponse
<GetAccountInfoApiResponse
<AccountInfoWithJsonData
>>
See
https://solana.com/docs/rpc/http/getaccountinfo
Call Signature
getAccountInfo(
address
,config
):SolanaRpcResponse
<GetAccountInfoApiResponse
<AccountInfoWithBase58EncodedData
>>
Fetches information associated with the account at the given address.
If the account has data, it will be returned in the response as a tuple whose first element is a base58-encoded string. If the account contains more than 129 bytes of data, this method will raise an error.
Parameters
Parameter | Type |
---|---|
address | Address |
config | Readonly <{ commitment? : Commitment ; encoding : "base58" | "base64" | "base64+zstd" | "jsonParsed" ; minContextSlot? : Slot ; }> & Readonly <{ dataSlice? : DataSlice ; }> & Readonly <{ encoding : "base58" ; }> |
Returns
SolanaRpcResponse
<GetAccountInfoApiResponse
<AccountInfoWithBase58EncodedData
>>
See
https://solana.com/docs/rpc/http/getaccountinfo
Call Signature
getAccountInfo(
address
,config?
):SolanaRpcResponse
<GetAccountInfoApiResponse
<AccountInfoWithBase58Bytes
>>
Fetches information associated with the account at the given address.
If the account has data, it will be returned in the response as a base58-encoded string. If the account contains more than 129 bytes of data, this method will raise an error.
Parameters
Parameter | Type |
---|---|
address | Address |
config? | Omit <Readonly <{ commitment? : Commitment ; encoding : "base58" | "base64" | "base64+zstd" | "jsonParsed" ; minContextSlot? : Slot ; }>, "encoding" > |
Returns
SolanaRpcResponse
<GetAccountInfoApiResponse
<AccountInfoWithBase58Bytes
>>