Class NativeWithdrawBidBuilder

Builder for creating Native Withdraw Bid transactions. Used by validators to withdraw or reduce their bid in the Casper auction system.

Example

const transaction = new NativeWithdrawBidBuilder()
.from(validatorPublicKey)
.validator(validatorPublicKey)
.amount('500000000000') // 500 CSPR
.chainName('casper')
.payment(2_500_000_000)
.build();

Hierarchy

Constructors

Properties

_amount: CLValue = ...
_chainName: string
_contractHash: string
_initiatorAddr: InitiatorAddr
_invocationTarget: TransactionTarget
_pricingMode: PricingMode
_runtimeArgs: Args
_scheduling: TransactionScheduling = ...
_timestamp: Timestamp = ...
_ttl: Duration = ...
_validator: CLValue

Methods

  • Protected

    Creates a default deploy header with the configured transaction settings.

    Returns

    A deploy header with account, chain name, timestamp, TTL, and gas price

    Returns DeployHeader

  • Builds and returns the Withdraw Bid transaction for Casper 1.5. Uses the auction manager contract for backward compatibility.

    Returns

    A Transaction object compatible with Casper 1.5

    Throws

    If contract hash cannot be determined

    Returns Transaction

  • Sets the payment amount for the transaction using a limited payment mode.

    Returns

    The builder instance for method chaining

    Parameters

    • paymentAmount: number

      The payment amount in motes

    • gasPriceTolerance: number = 1

      Gas price tolerance multiplier (default: 1)

    Returns NativeWithdrawBidBuilder

Generated using TypeDoc