parseBase58RpcAccount
Call Signature
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
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 | null |
Returns
MaybeEncodedAccount<TAddress>