> ## 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::SyscallResultTrait

Trait for handling syscall results.

## Signature

```rust theme={null}
pub trait SyscallResultTrait
```

## Trait functions

### unwrap\_syscall

Unwraps a syscall result, yielding the content of an `Ok`.

#### Panics

Panics with the syscall error message if the value is an `Err`.

#### Examples

```rust theme={null}
let result = starknet::syscalls::get_execution_info_v2_syscall();
let info = result.unwrap_syscall();
```

#### Signature

```rust theme={null}
fn unwrap_syscall(self: SyscallResult) -> T
```
