Skip to main content

Function: getContractId()

function getContractId(contextTx): HashId;

Function to get the contract ID from a transaction context.

Parameters

contextTx: L2TxResolved

The transaction context.

Returns

HashId

The contract ID.

Throws

Will throw an error if the resolved reference is not version 0.


Coinweb © 2024