Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

get

Read a record from a table, with its ID and layout.

Arguments

  • table - the table selector
  • key - key of the record to read
  • layout - the layout of the record to read.

Returns

A Span<felt252> containing the raw unpacked data of the read record.

Fully qualified path: dojo::storage::database::get

pub fn get(table: felt252, key: felt252, layout: Span<u8>) -> Span<felt252>