Skip to main content

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

Return the contract information given an id

Updated on
Dec 18, 2024

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 | null

The administrative key for the contract, if any

_type
string

The type of key

key
string

The key value

auto_renew_account
string | null

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 | null

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 | null

The account ID of the obtainer

permanent_removal
boolean | null

Indicates if the contract is marked for permanent removal.

proxy_account_id
string | null

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 | null

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
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free