POST
/v1/contracts
Add Contract
Add a new smart contract for monitoring. You can provide the contract ABI directly or let the system attempt to fetch it automatically from verified sources.
Endpoint Details
POST
https://api.monitor.getfailsafe.com/server
https://api.monitor.getfailsafe.com/server/v1/contracts
Request Body Schema
Contract information including address, label, and optional ABI
{
"chainId": 1,
"contractAddress": "0xa0b86a33E6441e67eF7b00d6ccDFd1c12F4d4b8c",
"label": "USDC Token Contract",
"ABI": [
{
"inputs": [
{
"name": "to",
"type": "address"
},
{
"name": "amount",
"type": "uint256"
}
],
"name": "transfer",
"outputs": [
{
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "from",
"type": "address"
},
{
"indexed": true,
"name": "to",
"type": "address"
},
{
"indexed": false,
"name": "value",
"type": "uint256"
}
],
"name": "Transfer",
"type": "event"
}
]
}