Parameters
- block_idstringREQUIRED
The hash of the requested block, the block number (height) of the requested block, or a block tag (latest, pre_confirmed, or l1_accepted)
- class_hashstringREQUIRED
The hash of the requested contract class
Returns
- resultobject
The result object which contains one of the following objects
- DEPRECATED_CONTRACT_CLASSobject
(Optional) The definition of a StarkNet contract class
- programstring
A base64 representation of the compressed program code
- entry_points_by_typeobject
Deprecated entry points by type
- CONSTRUCTORobject
Deprecated constructor
- function_idxstring
An integer index of the function
- selectorstring
A unique identifier of the entry point (function) in the program
- EXTERNALobject
Deprecated external
- function_idxstring
An integer index of the function
- selectorstring
A unique identifier of the entry point (function) in the program
- L1_HANDLERobject
Deprecated L1 handler
- function_idxstring
An integer index of the function
- selectorstring
A unique identifier of the entry point (function) in the program
- abiarray
The contract ABI which contains one of the following objects:
- FUNCTION_ABI_ENTRYobject
The function ABI entry object whicb contains the following fields:
- typestring
The function ABI type. It can take value such as - 'function', 'l1_handler' or 'constructor'
- namestring
The function name
- inputsarray
The typed parameter, which have following fields:
- namestring
The parameter's name
- typestring
The parameter's type
- outputsarray
The typed parameter, which have following fields:
- namestring
The parameter's name
- typestring
The parameter's type
- stateMutabilitystring
The Function state mutability type which can take value as - view'
- EVENT_ABI_ENTRYobject
The Event ABI entry object which contains the following fields:
- typestring
The Event ABI type. It can take value such as - 'function', 'l1_handler' or 'constructor'
- namestring
The event name
- keysarray
The Typed parameter
- namestring
The parameter's name
- typestring
The parameter's type
- dataarray
The Typed parameter
- namestring
The parameter's name
- typestring
The parameter's type
- STRUCT_ABI_ENTRYobject
The Struct ABI entry object which contains the following fields:
- typestring
The Struct ABI type. It can take value such as - 'struct'
- namestring
The struct name
- sizeinteger
The size
- membersarray
The Typed parameter
- namestring
The parameter's name
- typestring
The parameter's type
- Offsetinteger
The offset of this property within the struct
- CONTRACT_CLASSobject
(Optional)
- sierra_programobject
The list of Sierra instructions of which the program consists
- contract_class_versionstring
The version of the contract class object. Currently, the Starknet OS supports version 0.1.0
- entry_points_by_typeobject
Deprecated entry points by type
- CONSTRUCTORobject
The sierra entry point
- selectorstring
A unique identifier of the entry point (function) in the program
- function_idxstring
The index of the function in the program
- EXTERNALobject
Deprecated external
- selectorstring
A unique identifier of the entry point (function) in the program
- function_idxstring
The index of the function in the program
- L1_HANDLERobject
Deprecated L1 handler
- selectorstring
A unique identifier of the entry point (function) in the program
- function_idxstring
The index of the function in the program
- abistring
The class ABI, as supplied by the user declaring the class