Protected _chainProtected _contractProtected _entryProtected _initiatorProtected _invocationPrivate _isProtected _pricingProtected _runtimeProtected _schedulingProtected _timestampProtected _ttlProtected _getProtected
Creates a default deploy header with the configured transaction settings.
A deploy header with account, chain name, timestamp, TTL, and gas price
Protected _getProtected
Creates a standard payment executable deploy item.
An executable deploy item configured for standard payment
If payment amount is not specified
Builds and returns the Transaction instance.
A complete Transaction object ready to be signed and submitted
Builds and returns the Session transaction for Casper 1.5. Uses the legacy deploy format for backward compatibility.
A Transaction object compatible with Casper 1.5
If WASM bytecode is not specified
Sets the chain name for the transaction.
The builder instance for method chaining
The name of the Casper network chain (e.g., 'casper-test', 'casper')
Sets the contract hash for the transaction.
The builder instance for method chaining
The contract hash in hexadecimal format
Sets the initiator address using a public key.
The builder instance for method chaining
The public key of the transaction initiator
Sets the initiator address using an account hash.
The builder instance for method chaining
The account hash of the transaction initiator
Marks this session as an install or upgrade operation. Should be called when deploying a new contract or upgrading an existing one.
The builder instance for method chaining
Sets the payment amount for the transaction using a limited payment mode.
The builder instance for method chaining
The payment amount in motes
Gas price tolerance multiplier (default: 1)
Sets the runtime arguments to pass to the session.
The builder instance for method chaining
The arguments to pass to the contract installer
Sets the timestamp for the transaction.
The builder instance for method chaining
The transaction timestamp
Sets the time-to-live for the transaction.
The builder instance for method chaining
Time-to-live in milliseconds (default: 1800000ms = 30 minutes)
Sets the WebAssembly bytecode for the session.
The builder instance for method chaining
The compiled WebAssembly contract bytecode
Generated using TypeDoc
Builder for creating Session transactions. Used to deploy new smart contracts or upgrade existing ones from WebAssembly bytecode.
Example