Function createEventDatabase

  • Create an event database to store contract events

    const {db, result} = await createEventDatabase(client, "my_db")
    

    Parameters

    • client: Client

      the db3 client instance

    • desc: string

      the description for the database

    • contractAddress: string
    • tables: string[]
    • abi: string
    • evmNodeUrl: string

    Returns Promise<{
        db: Database;
        result: MutationResult;
    }>

    the CreateDBResult

Generated using TypeDoc