• SmartContractsApi - axios parameter creator

    Parameters

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

    • compileSmartContract: ((compileSmartContractRequest, options?) => Promise<RequestArgs>)

      Compile a smart contract

      Summary

      Compile a smart contract

      Throws

    • createSmartContract: ((walletId, addressId, createSmartContractRequest, options?) => Promise<RequestArgs>)

      Create a new smart contract

      Summary

      Create a new smart contract

      Throws

        • (walletId, addressId, createSmartContractRequest, options?): Promise<RequestArgs>
        • 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<RequestArgs>

    • deploySmartContract: ((walletId, addressId, smartContractId, deploySmartContractRequest, options?) => Promise<RequestArgs>)

      Deploys a smart contract, by broadcasting the transaction to the network.

      Summary

      Deploy a smart contract

      Throws

        • (walletId, addressId, smartContractId, deploySmartContractRequest, options?): Promise<RequestArgs>
        • 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<RequestArgs>

    • getSmartContract: ((walletId, addressId, smartContractId, options?) => Promise<RequestArgs>)

      Get a specific smart contract deployed by address.

      Summary

      Get a specific smart contract deployed by address

      Throws

        • (walletId, addressId, smartContractId, options?): Promise<RequestArgs>
        • 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<RequestArgs>

    • listSmartContracts: ((page?, options?) => Promise<RequestArgs>)

      List smart contracts

      Summary

      List smart contracts

      Throws

        • (page?, options?): Promise<RequestArgs>
        • Parameters

          • Optional page: string

            Pagination token for retrieving the next set of results

          • Optional options: RawAxiosRequestConfig = {}

            Override http request option.

          Returns Promise<RequestArgs>

    • readContract: ((networkId, contractAddress, readContractRequest, options?) => Promise<RequestArgs>)

      Perform a read operation on a smart contract without creating a transaction

      Summary

      Read data from a smart contract

      Throws

        • (networkId, contractAddress, readContractRequest, options?): Promise<RequestArgs>
        • Parameters

          • networkId: string
          • contractAddress: string
          • readContractRequest: ReadContractRequest
          • Optional options: RawAxiosRequestConfig = {}

            Override http request option.

          Returns Promise<RequestArgs>

    • registerSmartContract: ((networkId, contractAddress, registerSmartContractRequest?, options?) => Promise<RequestArgs>)

      Register a smart contract

      Summary

      Register a smart contract

      Throws

        • (networkId, contractAddress, registerSmartContractRequest?, options?): Promise<RequestArgs>
        • 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<RequestArgs>

    • updateSmartContract: ((networkId, contractAddress, updateSmartContractRequest?, options?) => Promise<RequestArgs>)

      Update a smart contract

      Summary

      Update a smart contract

      Throws

        • (networkId, contractAddress, updateSmartContractRequest?, options?): Promise<RequestArgs>
        • 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<RequestArgs>

    Export