db_get

Function db_get 

Source
pub fn db_get(db_handle: DbHandle, key: &[u8]) -> GenericResult<Option<Vec<u8>>>
Expand description

Read a key from the on-chain key-value store given a DbHandle and key.

Returns the Vec<u8> value if the key exists, otherwise None.

ยงPermissions

  • ContractSection::Deploy
  • ContractSection::Metadata
  • ContractSection::Exec