Parameters
chainId
string
default:"starknet-sepolia"
required
Unique identifier for a blockchain network.
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"starknet_getClassAt"
required
JSON-RPC method name.
Parameters for starknet_getNonce: [block_id, contract_address].Parameters for starknet_getClassAt:params.block_id: BlockID object containing hash and number.params.contract_address: The address of the request contract.
Returns
Contract class object.
The class ABI, as supplied by the user declaring the class.
Version of the contract class object.
Entry points by type.
List of constructor entry points.
List of external entry points.
List of L1 handler entry points.
List of Sierra instructions of which the program consists.
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=starknet-sepolia \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "starknet_getClassAt",
"params": {
"block_id": {
"block_hash": "0x041b10c45dc3f39372f7b9409261cac9d880c5d75a5bb077d028db20b1bd76c4"
},
"contract_address": "0x03b554093fb0a7460913be2d5c011cb5ac4333dfcfe6125851bcd3f926a3b558"
}
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"abi": "[{\"type\": \"impl\", \"name\": \"ISTARKSImpl\", \"interface_name\": \"ins::ins::ISTARKS\"}, {\"type\": \"interface\", \"name\": \"ins::ins...",
"contract_class_version": "0.1.0",
"entry_points_by_type": {
"CONSTRUCTOR": [
{
"__truncated": true
}
],
"EXTERNAL": [
{
"__truncated": true
},
{
"__truncated": true
}
],
"L1_HANDLER": []
},
"sierra_program": [
"0x1",
"0x3",
"0x0",
"0x361",
"..."
]
}
}