Class FacadeFactory

java.lang.Object
org.symbol.sdk.facade.FacadeFactory

public final class FacadeFactory extends Object
FacadeFactory
Creates a BlockchainFacade for a blockchain chosen at runtime. Each handle is a thin adapter that delegates to a freshly constructed chain facade; the chain-specific type parameters make a foreign chain's transaction or key pair a compile error. Call the transaction-typed methods from a generic capture-helper method (see the BlockchainFacade example); the account, network and BIP32 surface is usable on the wildcard handle directly.
  • Method Details

    • create

      public static BlockchainFacade<?,?,?> create(String blockchain, String networkName)
      FacadeFactory.create
      Creates a facade for the named blockchain and network.
      Parameters:
      blockchain - Blockchain name ("symbol" or "nem", case-insensitive).
      networkName - Network name (e.g. "mainnet", "testnet").
      Returns:
      Facade for the blockchain, typed as the blockchain-agnostic interface.