Type Alias TransactionBuilder

TransactionBuilder: ((transaction: TransactionRequest, secret?: any, provider?: Web3ZKsyncL2) => Promise<TransactionRequest>)

Populates missing fields in a transaction with default values.

Type declaration

    • (transaction, secret?, provider?): Promise<TransactionRequest>
    • Parameters

      • transaction: TransactionRequest

        The transaction that needs to be populated.

      • Optionalsecret: any

        The secret used for populating the transaction.

      • Optionalprovider: Web3ZKsyncL2

        The provider is used to fetch data from the network if it is required for signing.

      Returns Promise<TransactionRequest>

      A promise that resolves to the populated transaction.