%lang starknet

from starkware.cairo.common.math import signed_div_rem
from starkware.cairo.common.math_cmp import RC_BOUND

@viewfunc sum(arr_len : felt, arr : felt*) -> (res : felt):
if arr_len == 0:
return (0)
end

let (sum_of_rest) = sum(arr_len=arr_len - 1, arr=arr + 1)
return ([arr] + sum_of_rest)
end

VOYAGER

The window to Starknet

Voyager is a block explorer for Starknet, developed by Nethermind. It provides a window for anyone to interact with the most cutting edge ZK-rollup. With its clean and minimal UI, Voyager brings transparency and convenience to all Starknet trailblazers.

%lang starknet

from starkware.cairo.common.math import signed_div_rem
from starkware.cairo.common.math_cmp import RC_BOUND

@viewfunc sum(arr_len : felt, arr : felt*) -> (res : felt):
if arr_len == 0:
return (0)
end

let (sum_of_rest) = sum(arr_len=arr_len - 1, arr=arr + 1)
return ([arr] + sum_of_rest)
end

%lang starknet

from starkware.cairo.common.math import
signed_div_rem
from starkware.cairo.common.math_cmp
import RC_BOUND

@view
func sum(arr_len : felt, arr : felt*) ->
(res : felt):
if arr_len == 0:
return (0)

Blocks

Shows latest blocks and their status, along with pending and accepted blocks.

Transactions

Shows transactions in reverse chronological order.

Contracts

Shows deployed contracts in reverse chronological order.

Classes

Shows declared classes in reverse chronological order.

Messages

Displays latest messages following the Starknet L1-L2 messaging protocol.

Events

Shows events emitted by contracts to notify applications about changes in their state.

Analytics

Displays transaction trends, contract and class growth over time, and Cairo 1 adoption statistics.

Network

Voyager allows browsing Starknet in Mainnet, Goerli testnet 1 and 2.