Skip to content
docs

resolveRpc

resolveRpc(account, config): NearRpc | undefined

Defined in: protocol-staking-liquid-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.

IWalletAccountReadOnly | IWalletAccount

NearProvider | NearProvider[]

number

NearRpc | undefined