Function setup

  • Setup the data rollup node and data index node with system parameters and only the admin can request the method

     const config: SystemConfig = {
    rollupInterval: "600000",
    minRollupSize: "1048576",
    networkId: "1",
    chainId: 80000,
    contractAddr: "0xb9709cE5E749b80978182db1bEdfb8c7340039A9",
    rollupMaxInterval: "6000000",
    evmNodeUrl: "ws://127.0.0.1:8585",
    arNodeUrl: "https://arweave.net",
    minGcOffset: "864000"
    }
    const [rollupCode, indexCode] = await setup(client, config)

    Parameters

    Returns Promise<readonly [string, string]>

    the response code for data rollup node and data index node

Generated using TypeDoc