adapter method

BlockchainAdapter adapter()

return cached BlockchainAdapter instance.

Implementation

BlockchainAdapter adapter() {
  if (_blockfrostAdapter == null) {
    final blockfrost = _cachedBlockfrost(
        networkId: networkId, authInterceptor: authInterceptor);
    _blockfrostAdapter = BlockfrostBlockchainAdapter(
        networkId: networkId, blockfrost: blockfrost, projectId: projectId);
  }
  return _blockfrostAdapter!;
}