Skip to content

FaucetInvokeBuilder

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

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

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

new FaucetInvokeBuilder(network, faucetAddress): FaucetInvokeBuilder

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

number

string

FaucetInvokeBuilder

build(): UnsignedTransactionWithBlobs

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

UnsignedTransactionWithBlobs


feeTransactionPayFromComponent(componentAddress, maxFee): this

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

string

bigint

this


publishTemplate(templateAddress, workspaceBucket?): this

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

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:127

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:139

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

string

this