resolveRpc
resolveRpc(
account,config):NearRpc|undefined
Defined in: protocol-staking-native-near/src/rpc.ts:9
The read client: provider from the config, else the transport of a wallet-near account
(_client, or its configured provider). Undefined when neither exists; reads then refuse with
‘no-provider’. External-signer accounts (wallet-selector adapters) have none: pass provider.
Parameters
Section titled “Parameters”account
Section titled “account”IWalletAccountReadOnly | IWalletAccount
config
Section titled “config”provider?
Section titled “provider?”NearProvider | NearProvider[]
timeoutMs?
Section titled “timeoutMs?”number
Returns
Section titled “Returns”NearRpc | undefined