• Parses a base64-encoded account provided by the RPC client into an EncodedAccount type or a MaybeEncodedAccount type if the raw data can be set to null.

    Type Parameters

    • TAddress extends string = string

      Supply a string literal to define an account having a particular address.

    Parameters

    Returns EncodedAccount<TAddress>

    const myAddress = address('1234..5678');
    const myRpcAccount = await rpc.getAccountInfo(myAddress, { encoding: 'base64' }).send();
    const myAccount: MaybeEncodedAccount<'1234..5678'> = parseBase64RpcAccount(myRpcAccount);
  • Type Parameters

    • TAddress extends string = string

    Parameters

    Returns MaybeEncodedAccount<TAddress>