Transfer Contract Ownership

Transfers the ownership of the contract. You can access the contract to be transferred using either the contract alias or contract address.

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

The address of the owner who owns the contract. The address of the deployer who created this contract will fill this value if nothing is entered.

owner
required
string

The contract ownership is transferred to the relevant address.

Responses
200

Your request was successful.

400

Your request is not valid.

401

The credential you entered is invalid.

put/v2/contract/{contract-address-or-alias}/owner/transfer
Request samples
application/json
{
  • "owner": "0xa809284C83b901eD106Aba4Ccda14628Af128e14"
}
Response samples
application/json

Your request was successful.

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