Contracts
Updates a contract object.
Changed onpost/v1/contracts/{id}
Request
- Base URL: https://api.openfort.io
- URL: https://api.openfort.io/v1/contracts/{id}
- Auth: one of:
- HTTP bearer
- HTTP bearer
Path parameters
idstring required
Specifies the unique contract ID (starts with con_).
Request body
Example request
{
"name": "NFT Contract",
"chainId": 80002,
"address": "0x1234567890abcdef1234567890abcdef12345678",
"abi": [
{
"inputs": [
{
"internalType": "address",
"name": "_owner",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
}
]
}Response
Successful response.
Changes
- info
the security scope
contracts:writewas added to the endpoint's security schemesk
- info