Skip to main content

/api/v1/contracts/{contractIdOrAddress} REST API Endpoint

Return the contract information given an id

Updated on
Aug 23, 2024

/api/v1/contracts/{contractIdOrAddress} REST API Endpoint

Please note that this method is currently available only on the testnet and will be accessible on the mainnet soon.

Path Parameters

contractIdOrAddress
string
REQUIRED
The ID or hex encoded EVM address (with or without 0x prefix) associated with this contract

Query Parameters

timestamp
array
The consensus timestamp as a Unix timestamp in seconds.nanoseconds format with an optional comparison operator

Returns

admin_key
object
The administrative key for the contract, if any
_type
string
The type of key
key
string
The key value
auto_renew_account
string
The account ID to charge for auto-renewal of the contract
auto_renew_period
integer
The period in seconds for auto-renewal of the contract
contract_id
string
The unique identifier of the contract
created_timestamp
string
The timestamp when the contract was created
deleted
boolean
A boolean indicating whether the contract has been deleted
evm_address
string
The Ethereum Virtual Machine (EVM) address of the contract
expiration_timestamp
string
The timestamp when the contract is set to expire
max_automatic_token_associations
integer
The maximum number of automatic token associations for the contract
file_id
string
The file ID associated with the contract
memo
string
A memo associated with the contract
nonce
integer
The nonce value for the contract, indicating the number of transactions sent
obtainer_id
string
The account ID of the obtainer
permanent_removal
boolean
Indicates if the contract is marked for permanent removal.
proxy_account_id
string
The proxy account ID for the contract, if any
timestamp
object
An object indicating the time range during which the contract is active
from
string
The starting timestamp of the contract's activity
to
string
The ending timestamp of the contract's activity
bytecode
string
The bytecode of the smart contract
runtime_bytecode
string
The runtime bytecode of the smart contract
Request
1
curl 'https://docs-demo.hedera-mainnet.quiknode.pro/api/v1/contracts/0.0.4651164'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free