getRelayProtocolApi function

RelayJsonRpcMethods getRelayProtocolApi(
  1. String protocol
)

Implementation

RelayJsonRpcMethods getRelayProtocolApi(String protocol) {
  final jsonrpc = RELAY_JSONRPC[protocol];
  if (jsonrpc == null) {
    throw WCException('Relay Protocol not supported: $protocol');
  }
  return jsonrpc;
}