> ## Documentation Index
> Fetch the complete documentation index at: https://docs.starknet.io/llms.txt
> Use this file to discover all available pages before exploring further.

# core::starknet::syscalls

Utilities for interacting with the Starknet OS.
Writing smart contracts requires various associated operations, such as calling another contract
or accessing the contract’s storage, that standalone programs do not require. Cairo supports
these operations by using system calls.
System calls enable a contract to require services from the Starknet OS. You can use system
calls in a function to get information that depends on the broader state of Starknet, such as
the current timestamp or the address of the caller, but also to modify the state of Starknet by,
for example, storing values in a contract's storage or deploying new contracts.

## [Extern functions](./core-starknet-syscalls-extern_functions)

| | |
| :- | :- |
| [call\_contract\_syscall](https://docs.starknet.io/build/corelib/core-starknet-syscalls-call_contract_syscall.md) | Calls a given contract.... |
| [deploy\_syscall](https://docs.starknet.io/build/corelib/core-starknet-syscalls-deploy_syscall.md) | Deploys a new instance of a previously declared class.... |
| [emit\_event\_syscall](https://docs.starknet.io/build/corelib/core-starknet-syscalls-emit_event_syscall.md) | Emits an event.... |
| [get\_block\_hash\_syscall](https://docs.starknet.io/build/corelib/core-starknet-syscalls-get_block_hash_syscall.md) | Returns the hash of the block with the given number.... |
| [get\_execution\_info\_syscall](https://docs.starknet.io/build/corelib/core-starknet-syscalls-get_execution_info_syscall.md) | Gets information about the currently executing block and the transactions within it. For a complete description of this information, see `Execution information` . When an account’s `__validate__` ,... |
| [get\_execution\_info\_v2\_syscall](https://docs.starknet.io/build/corelib/core-starknet-syscalls-get_execution_info_v2_syscall.md) | Gets information about the current execution, version 2. This syscall should not be called directly. Instead, use `starknet::info::get_execution_info` .... |
| [library\_call\_syscall](https://docs.starknet.io/build/corelib/core-starknet-syscalls-library_call_syscall.md) | Calls the requested function in any previously declared class.... |
| [send\_message\_to\_l1\_syscall](https://docs.starknet.io/build/corelib/core-starknet-syscalls-send_message_to_l1_syscall.md) | Sends a message to L1.... |
| [storage\_read\_syscall](https://docs.starknet.io/build/corelib/core-starknet-syscalls-storage_read_syscall.md) | Gets the value of a key in the storage of the calling contract.... |
| [storage\_write\_syscall](https://docs.starknet.io/build/corelib/core-starknet-syscalls-storage_write_syscall.md) | Sets the value of a key in the storage of the calling contract.... |
| [replace\_class\_syscall](https://docs.starknet.io/build/corelib/core-starknet-syscalls-replace_class_syscall.md) | Replaces the class hash of the current contract, instantly modifying its entrypoints. The new class becomes effective only after the current function call completes.... |
| [get\_class\_hash\_at\_syscall](https://docs.starknet.io/build/corelib/core-starknet-syscalls-get_class_hash_at_syscall.md) | Gets the class hash of the contract at the given address.... |
| [keccak\_syscall](https://docs.starknet.io/build/corelib/core-starknet-syscalls-keccak_syscall.md) | Computes the keccak of the input.... |
| [sha256\_process\_block\_syscall](https://docs.starknet.io/build/corelib/core-starknet-syscalls-sha256_process_block_syscall.md) | Computes the next SHA-256 state of the input with the given state.... |
| [meta\_tx\_v0\_syscall](https://docs.starknet.io/build/corelib/core-starknet-syscalls-meta_tx_v0_syscall.md) | Invokes the given entry point as a v0 meta transaction.... |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.