Skip to content

compile

@algorandfoundation/algorand-typescript


@algorandfoundation/algorand-typescript / index / compile

Function: compile()

Call Signature

compile(contract, options?): CompiledContract

Defined in: packages/algo-ts/src/compiled.ts:107

Compile a contract and return the resulting byte code for approval and clear state programs.

Parameters

contract

ConstructorFor<BaseContract>

The contract class to compile

options?

CompileContractOptions

Options for compiling the contract

Returns

CompiledContract

Call Signature

compile(logicSig, options?): CompiledLogicSig

Defined in: packages/algo-ts/src/compiled.ts:113

Compile a logic signature and return an account ready for signing transactions.

Parameters

logicSig

ConstructorFor<LogicSig>

The logic sig class to compile

options?

CompileLogicSigOptions

Options for compiling the logic sig

Returns

CompiledLogicSig