• SmartContractsApi - functional programming interface

    Parameters

    Returns {
        compileSmartContract(compileSmartContractRequest, options?): Promise<((axios?, basePath?) => AxiosPromise<CompiledSmartContract>)>;
        createSmartContract(walletId, addressId, createSmartContractRequest, options?): Promise<((axios?, basePath?) => AxiosPromise<SmartContract>)>;
        deploySmartContract(walletId, addressId, smartContractId, deploySmartContractRequest, options?): Promise<((axios?, basePath?) => AxiosPromise<SmartContract>)>;
        getSmartContract(walletId, addressId, smartContractId, options?): Promise<((axios?, basePath?) => AxiosPromise<SmartContract>)>;
        listSmartContracts(page?, options?): Promise<((axios?, basePath?) => AxiosPromise<SmartContractList>)>;
        readContract(networkId, contractAddress, readContractRequest, options?): Promise<((axios?, basePath?) => AxiosPromise<SolidityValue>)>;
        registerSmartContract(networkId, contractAddress, registerSmartContractRequest?, options?): Promise<((axios?, basePath?) => AxiosPromise<SmartContract>)>;
        updateSmartContract(networkId, contractAddress, updateSmartContractRequest?, options?): Promise<((axios?, basePath?) => AxiosPromise<SmartContract>)>;
    }

    • compileSmartContract:function
    • createSmartContract:function
      • Create a new smart contract

        Parameters

        • walletId: string

          The ID of the wallet the address belongs to.

        • addressId: string

          The ID of the address to deploy the smart contract from.

        • createSmartContractRequest: CreateSmartContractRequest
        • Optional options: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?, basePath?) => AxiosPromise<SmartContract>)>

        Summary

        Create a new smart contract

        Throws

    • deploySmartContract:function
      • Deploys a smart contract, by broadcasting the transaction to the network.

        Parameters

        • walletId: string

          The ID of the wallet the address belongs to.

        • addressId: string

          The ID of the address to broadcast the transaction from.

        • smartContractId: string

          The UUID of the smart contract to broadcast the transaction to.

        • deploySmartContractRequest: DeploySmartContractRequest
        • Optional options: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?, basePath?) => AxiosPromise<SmartContract>)>

        Summary

        Deploy a smart contract

        Throws

    • getSmartContract:function
      • Get a specific smart contract deployed by address.

        Parameters

        • walletId: string

          The ID of the wallet the address belongs to.

        • addressId: string

          The ID of the address to fetch the smart contract for.

        • smartContractId: string

          The UUID of the smart contract to fetch.

        • Optional options: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?, basePath?) => AxiosPromise<SmartContract>)>

        Summary

        Get a specific smart contract deployed by address

        Throws

    • listSmartContracts:function
      • List smart contracts

        Parameters

        • Optional page: string

          Pagination token for retrieving the next set of results

        • Optional options: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?, basePath?) => AxiosPromise<SmartContractList>)>

        Summary

        List smart contracts

        Throws

    • readContract:function
      • Perform a read operation on a smart contract without creating a transaction

        Parameters

        • networkId: string
        • contractAddress: string
        • readContractRequest: ReadContractRequest
        • Optional options: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?, basePath?) => AxiosPromise<SolidityValue>)>

        Summary

        Read data from a smart contract

        Throws

    • registerSmartContract:function
      • Register a smart contract

        Parameters

        • networkId: string

          The ID of the network to fetch.

        • contractAddress: string

          EVM address of the smart contract (42 characters, including &#39;0x&#39;, in lowercase)

        • Optional registerSmartContractRequest: RegisterSmartContractRequest
        • Optional options: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?, basePath?) => AxiosPromise<SmartContract>)>

        Summary

        Register a smart contract

        Throws

    • updateSmartContract:function
      • Update a smart contract

        Parameters

        • networkId: string

          The ID of the network to fetch.

        • contractAddress: string

          EVM address of the smart contract (42 characters, including &#39;0x&#39;, in lowercase)

        • Optional updateSmartContractRequest: UpdateSmartContractRequest
        • Optional options: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?, basePath?) => AxiosPromise<SmartContract>)>

        Summary

        Update a smart contract

        Throws

    Export