Skip to content

FaucetInvokeBuilder

Defined in: ootle/src/builtin-templates.ts:110

Fluent builder for common faucet component invocations. Mirrors FaucetInvokeBuilder from the Rust ootle-rs crate.

const tx = new FaucetInvokeBuilder(network, maxEpoch, faucetAddress)
.feeTransactionPayFromComponent(accountAddress, 1000n)
.takeFaucetFunds(accountAddress, 10_000n)
.build();

new FaucetInvokeBuilder(network, maxEpoch, faucetAddress): FaucetInvokeBuilder

Defined in: ootle/src/builtin-templates.ts:114

number

number

string

FaucetInvokeBuilder

build(): UnsignedTransactionV1

Defined in: ootle/src/builtin-templates.ts:158

UnsignedTransactionV1


feeTransactionPayFromComponent(componentAddress, maxFee): this

Defined in: ootle/src/builtin-templates.ts:119

string

bigint

this


publishTemplate(templateAddress, workspaceBucket?): this

Defined in: ootle/src/builtin-templates.ts:152

Publishes a template from the faucet component address. Mirrors FaucetInvokeBuilder::publish_template from ootle-rs.

string

string

this


takeFaucetFunds(destinationAccount, amount): this

Defined in: ootle/src/builtin-templates.ts:128

Takes amount of funds from the faucet and deposits them into destinationAccount. Mirrors FaucetInvokeBuilder::take_faucet_funds from ootle-rs.

string

bigint

this


takeMaxFaucetFunds(destinationAccount): this

Defined in: ootle/src/builtin-templates.ts:140

Takes the maximum available funds from the faucet into destinationAccount. Mirrors FaucetInvokeBuilder::take_max_faucet_funds from ootle-rs.

string

this