@multiversx/sdk-core - v14.0.1
    Preparing search index...

    Class SmartContract

    component. Use "SmartContractTransactionsFactory" or "SmartContractController", instead.

    An abstraction for deploying and interacting with Smart Contracts.

    Implements

    Index

    Constructors

    Properties

    methods: { [key: string]: (args?: any[]) => Interaction } = {}

    This object contains a function for each endpoint defined by the contract. (a bit similar to web3js's "contract.methods").

    This is an alternative to methodsExplicit. Unlike methodsExplicit, automatic type inference (wrt. ABI) is applied when using methods.

    methodsExplicit: { [key: string]: (args?: TypedValue[]) => Interaction } = {}

    This object contains a function for each endpoint defined by the contract. (a bit similar to web3js's "contract.methods").

    Methods

    • Computes the address of a Smart Contract. The address is computed deterministically, from the address of the owner and the nonce of the deployment transaction.

      Parameters

      • owner: Address

        The owner of the Smart Contract

      • nonce: bigint

        The owner nonce used for the deployment transaction

      Returns Address