Functions
fetchEncodedAccount
fetchEncodedAccount<
TAddress
>(rpc
,address
,config?
):Promise
<MaybeEncodedAccount
<TAddress
>>
Fetches a MaybeEncodedAccount from the provided RPC client and address.
It uses the getAccountInfo RPC method under the hood with base64 encoding and an additional configuration object can be provided to customize the behavior of the RPC call.
Type Parameters
Type Parameter | Default type | Description |
---|---|---|
TAddress extends string | string | Supply a string literal to define an account having a particular address. |
Parameters
Parameter | Type |
---|---|
rpc | Rpc <GetAccountInfoApi > |
address | Address <TAddress > |
config? | FetchAccountConfig |
Returns
Promise
<MaybeEncodedAccount
<TAddress
>>