Update contract owner
This guide describes how to update the contract owner of an ERC20 token contract.
Update token contract owner
This endpoint is used to update the owner
of an ERC20 contract. The updated owner will have admin rights to the contract.
Request Endpoint: reference
PUT /api/v3/erc20/contracts/{chain}/{contractAddress}/owner
Example Request
PUT /api/v3/erc20/contracts/MATIC/0x49b37698bdcc75afa99e319c0b7d803e732a9d85/owner
Request Body
Parameter | Param Type | Description | Data Type | Required |
---|---|---|---|---|
chain | Path | This is the blockchain of the ERC20 contract. | String | ✅ |
contractAddress | Path | The ERC20 contract address whose owner you wish to update. | String | ✅ |
owner | Request Body | The wallet address who will be the new owner of this ERC20 contract. The owner will have admin rights on the contract | String | ✅ |
{
"owner": "0xf2b1cEB69E765469a80E8d4c8635B05269889fa7"
}
Response Body
You can check the transaction hash in a blockchain explorer to verify that the
owner
of the NFT contract was updated successfully.
{
"success": true,
"result": {
"transactionHash": "0x2cb6028946609a8c78e243b24f7a4a21959d8ca772666b5979043dbd6189f84a"
}
}
Updated 5 days ago