Add Contract Pauser

Grants a specified account the authority to pause the actions of a contract. The actions of a contract here refer to sending tokens and sending tokens on the owner's behalf. To remove the authority, use Remove Pauser.

NOTE

The pauser needs to be an account managed by Wallet API in order to use Remove Contract Pauser API. Otherwise, you will have to sign and send the transaction on your own.

Sender

The account that grants the authority. 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 sender 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
sender
string

Kaia account address that grants to be granted authority to send and pause a contract. The default value is the deployer's address.

pauser
required
string

The Kaia account address to be granted authority to send and pause a contract.

Responses
200

Your request was successful.

400

Your request is not valid.

401

The credential you entered is invalid.

403

Access has been denied.

404

The resource you requested doesn't exist.

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

Your request was successful.

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