Contracts
Create contract object.
Changed onAdd a new contract to your project in Openfort
post/v1/contracts
Request
- Base URL: https://api.openfort.io
- URL: https://api.openfort.io/v1/contracts
- Auth: one of:
- HTTP bearer
- HTTP bearer
Request body
Example request
{
"name": "NFT Contract",
"chainId": 80002,
"address": "0x742e6e61d760164d56f44801054bcf40fa821d97",
"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