Scorum
Functions

Database NFT API. More...

Functions

nft_api_obj scorum::app::database_api::get_nft_by_id (int64_t id) const
 Get NFT object by id. More...
 
nft_api_obj scorum::app::database_api::get_nft_by_name (const account_name_type &name) const
 Get NFT object by name. More...
 
nft_api_obj scorum::app::database_api::get_nft_by_uuid (const uuid_type &uuid) const
 Get NFT object by uuid. More...
 
std::vector< nft_api_objscorum::app::database_api::lookup_nft (int64_t from, uint32_t limit) const
 Retrieve list of NFT objects in range [from, from+limit-1]. More...
 
game_round_api_obj scorum::app::database_api::get_game_round_by_uuid (const uuid_type &uuid) const
 Get game round by uuid object. More...
 
std::vector< game_round_api_objscorum::app::database_api::lookup_game_round (int64_t id, uint32_t limit) const
 Retrieve list of game rounds in range [from, from+limit-1]. More...
 

Detailed Description

Database NFT API.

Function Documentation

◆ get_game_round_by_uuid()

game_round_api_obj scorum::app::database_api::get_game_round_by_uuid ( const uuid_type uuid) const

Get game round by uuid object.

Parameters
uuidUUID of the game round
Returns
game_round_api_obj

Definition at line 1101 of file database_api.cpp.

◆ get_nft_by_id()

nft_api_obj scorum::app::database_api::get_nft_by_id ( int64_t  id) const

Get NFT object by id.

Parameters
idid of the NFT object
Returns
nft_api_obj

Definition at line 1069 of file database_api.cpp.

◆ get_nft_by_name()

nft_api_obj scorum::app::database_api::get_nft_by_name ( const account_name_type name) const

Get NFT object by name.

Parameters
namename of the NFT object
Returns
nft_api_obj

Definition at line 1074 of file database_api.cpp.

◆ get_nft_by_uuid()

nft_api_obj scorum::app::database_api::get_nft_by_uuid ( const uuid_type uuid) const

Get NFT object by uuid.

Parameters
uuidUUID of the NFT object
Returns
nft_api_obj

Definition at line 1079 of file database_api.cpp.

◆ lookup_game_round()

std::vector< game_round_api_obj > scorum::app::database_api::lookup_game_round ( int64_t  id,
uint32_t  limit 
) const

Retrieve list of game rounds in range [from, from+limit-1].

Parameters
idlower bound game round id
limitlimit number of objects in response
Returns
array of game_round_api_obj

Definition at line 1106 of file database_api.cpp.

◆ lookup_nft()

std::vector< nft_api_obj > scorum::app::database_api::lookup_nft ( int64_t  from,
uint32_t  limit 
) const

Retrieve list of NFT objects in range [from, from+limit-1].

Parameters
fromlower bound NFT id
limitlimit number of objects in response
Returns
array of nft_api_obj

Definition at line 1084 of file database_api.cpp.