src/rest-client/src/kip7/api/KIP7Api.js
/**
     * Pause KIP-7 contract
     * Pauses all token transfers and validations for a given contract.  You can resume token transfers by using [/v1/{contract-address-or-alias}/unpause](#operation/UnpauseContract).&lt;p&gt;&lt;/p&gt;
     * @param {KIP7Api~pauseContractCallback} callback The callback function, accepting three arguments: error, data, response
     * data is of type: {@link Kip7TransactionStatusResponse}
     */
Pause KIP-7 contract
Pauses all token transfers and validations for a given contract.
Pause KIP - 7 contract Pauses all token transfers and validations for a given contract .
pauseContract(xChainId, contractAddressOrAlias, callback) {
        const postBody = null
        const pathParams = {
            'contract-address-or-alias': contractAddressOrAlias,
        }
        const queryParams = {}
        const headerParams = {
            'x-chain-id': xChainId,
        }
        const formParams = {}
        const authNames = ['basic']
        const contentTypes = []
        const accepts = ['application/json']
        const returnType = Kip7TransactionStatusResponse
        return this.apiClient.callApi(
            '/v1/contract/{contract-address-or-alias}/pause',
            'POST',
            pathParams,
            queryParams,
            headerParams,
            formParams,
            postBody,
            authNames,
            contentTypes,
            accepts,
            returnType,
            callback
        )
    }
pauseContract ( xChainId , contractAddressOrAlias , callback ) { const postBody = null const pathParams = { 'contract-address-or-alias' : contractAddressOrAlias , } const queryParams = { } const headerParams = { 'x-chain-id' : xChainId , } const formParams = { } const authNames = [ 'basic' ] const contentTypes = [ ] const accepts = [ 'application/json' ] const returnType = Kip7TransactionStatusResponse return this . apiClient . callApi ( '/v1/contract/{contract-address-or-alias}/pause' , 'POST' , pathParams , queryParams , headerParams , formParams , postBody , authNames , contentTypes , accepts , returnType , callback ) }
Pause KIP-7 contract
 Pauses all token transfers and validations for a given contract.
Pause KIP - 7 contract Pauses all token transfers and validations for a given contract .