Skip to main content

initBlockchain

Callable


  • Initializes the Mina blockchain network Due to the limitations of the Mina SDK, only one network can be initialized at a time This function should be called before any other Mina functions


    Parameters

    • instance: blockchain

      the blockchain instance to initialize

    • deployersNumber: number = 0

      the number of deployers to use for the network (only for local and lightnet networks)

    Returns Promise<MinaNetworkInstance>

    the Mina network instance