Pause Contract

Pauses all actions of a specified contract. The actions of a contract here refer to sending tokens and sending tokens on the owner's behalf. You can resume the contract by using Resume Contract.

Pauser

The account that sends the transaction to pause the contract. If you leave it blank, it will automatically be set to the deployer address as default . You can find the deployer address by KIP7Deployer.

You can omit the KRN if the pauser address is managed by the KIP-7 or Wallet Service account-pool.
Otherwise you have to provide the KRN object in the header (x-krn: krn:{chain-id}:wallet:{account-id}:account-pool:{pool name}).

Request
Security:
path Parameters
contract-address-or-alias
required
string

Contract address (in hex.) or alias.

header Parameters
x-chain-id
required
string

Kaia Network Chain ID (1001 or 8217)

Request Body schema: application/json
pauser
string

The Kaia account address whose authority to send contracts will be removed. The default value is the deployer's address.

Responses
200

Your request was successful.

401

The credential you entered is invalid.

404

The resource you requested doesn't exist.

409

There was a conflict with the state of the server.

post/v1/contract/{contract-address-or-alias}/pause
Request samples
application/json
{
  • "pauser": "0x1eb15b3ccb2add3bfe132a4f6ad21ca62cf94e6d"
}
Response samples
application/json

Your request was successful.

{
  • "status": "Submitted",
  • "transactionHash": "0xf7843f034f2283d0ec32886a69d44a85ce19af25d8bd89d84322b973a86328a8"
}