Authorizations
Circle's API Keys are formatted in the following structure "PREFIX:ID:SECRET". All three parts are requred to make a successful request.
Headers
Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.
"2adba88e-9d63-44bc-b975-9b6ae3440dde"
Body
Estimate a transaction fee for deploying a smart contract
Bytecode of the contract being deployed.
1"0x60806040523480156200001157600080fd5b50604051806040..."
The contract's ABI in a JSON stringified format.
"[{\"inputs\": [],\"stateMutability\": \"nonpayable\",\"type\": \"constructor\"},..."
The blockchain network that the resource is to be created on or is currently on.
Required along with sourceAddress if you don't provide walletId. The blockchain and walletId fields are mutually exclusive.
ETH, ETH-SEPOLIA, MATIC, MATIC-AMOY, ARB, ARB-SEPOLIA, UNI, UNI-SEPOLIA, BASE, BASE-SEPOLIA, OP, OP-SEPOLIA "MATIC-AMOY"
Signature of the constructor if the contract has one. constructor() by default.
1 - 1000"constructor(string ticker, uint256 totalSupply)"
A list of arguments to pass to the contract's constructor function. Must be an empty array if there are no constructor parameters.
Can be any value - string, number, boolean, array or object.
["TICK", 10000]Source address of the transaction. Required along with blockchain if walletId is not provided.
The sourceAddress and walletId fields are mutually exclusive.
"0x1bf9ad0cc2ad298c69a2995aa806ee832788218c"
Unique system generated identifier of the wallet. Required when sourceAddress and blockchain are not provided.
Mutually exclusive with sourceAddress and blockchain.
For contract deploys this wallet ID will be used as the source.
"a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11"
Response
Estimate is successful.