Functions
parseBase58RpcAccount
Call Signature
parseBase58RpcAccount<
TAddress
>(address
,rpcAccount
):EncodedAccount
<TAddress
>
Parses a base58-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
Type Parameter | Default type | Description |
---|---|---|
TAddress extends string | string | Supply a string literal to define an account having a particular address. |
Parameters
Parameter | Type |
---|---|
address | Address <TAddress > |
rpcAccount | Base58EncodedRpcAccount |
Returns
EncodedAccount
<TAddress
>
Example
Call Signature
parseBase58RpcAccount<
TAddress
>(address
,rpcAccount
):MaybeEncodedAccount
<TAddress
>
Parses a base58-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
Type Parameter | Default type | Description |
---|---|---|
TAddress extends string | string | Supply a string literal to define an account having a particular address. |
Parameters
Parameter | Type |
---|---|
address | Address <TAddress > |
rpcAccount | null | Base58EncodedRpcAccount |
Returns
MaybeEncodedAccount
<TAddress
>