Enumeration SCTXType

    Smart contract specific transaction types Distinguishes between contract deployment and invocation

    // Deploy a new contract
    const deployType = SCTXType.SCDeploy

    // Invoke an existing contract
    const invokeType = SCTXType.SCInvoke

    Enumeration Members

    Enumeration Members

    SCDeploy: 1

    Deploy a new smart contract Upload and initialize contract code on the blockchain

    SCInvoke: 0

    Invoke a function on an existing smart contract Calls a method on a deployed contract