Pause Contract

Pauses all actions of a given contract. The actions of a contract here refer to creating, minting, and sending tokens. You can resume the contract by using Resume Contract.

NOTE

Even after pausing the contract, a transaction to create, mint, send tokens will still return Submitted in the respons, but that doesn't mean that it is actually Committed. To check the transaction status, use Get Contract or Get Token or Wallet API's Check Transaction Status.

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
any
Responses
200

Your request was successful.

400

The request is not valid.

401

The credential you provided is invalid.

403

Access has been denied.

404

The resource you requested does not exist.

409

There was a conflict with the current state of the server.

post/v2/contract/{contract-address-or-alias}/pause
Request samples
application/json
null
Response samples
application/json

Your request was successful.

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