Scorum
Functions
NFT

Wallet NFT API. More...

Functions

annotated_signed_transaction scorum::wallet::wallet_api::create_nft (const std::string &owner, const uuid_type &uuid, const std::string &name, int32_t initial_power, const std::string &json_meta, bool broadcast) const
 
annotated_signed_transaction scorum::wallet::wallet_api::update_nft_meta (const std::string &moderator, const uuid_type &uuid, const std::string &json_meta, bool broadcast) const
 
annotated_signed_transaction scorum::wallet::wallet_api::adjust_nft_experience (const std::string &moderator, const uuid_type &uuid, int32_t experience, bool broadcast) const
 
annotated_signed_transaction scorum::wallet::wallet_api::update_nft_name (const std::string &moderator, const uuid_type &uuid, const std::string &name, bool broadcast) const
 
nft_api_obj scorum::wallet::wallet_api::get_nft_by_id (int64_t id) const
 
nft_api_obj scorum::wallet::wallet_api::get_nft_by_name (const account_name_type &name) const
 
nft_api_obj scorum::wallet::wallet_api::get_nft_by_uuid (const uuid_type &uuid) const
 
std::vector< nft_api_objscorum::wallet::wallet_api::lookup_nft (int64_t from, uint32_t limit) const
 
annotated_signed_transaction scorum::wallet::wallet_api::create_game_round (const std::string &owner, const uuid_type &uuid, const std::string &verification_key, const std::string &seed, bool broadcast) const
 
annotated_signed_transaction scorum::wallet::wallet_api::update_game_round_result (const std::string &owner, const uuid_type &uuid, const std::string &proof, const std::string &vrf, int32_t result, bool broadcast) const
 
game_round_api_obj scorum::wallet::wallet_api::get_game_round_by_uuid (const uuid_type &uuid) const
 
std::vector< game_round_api_objscorum::wallet::wallet_api::lookup_game_round (int64_t from, uint32_t limit) const
 

Detailed Description

Wallet NFT API.

Function Documentation

◆ adjust_nft_experience()

annotated_signed_transaction scorum::wallet::wallet_api::adjust_nft_experience ( const std::string &  moderator,
const uuid_type uuid,
int32_t  experience,
bool  broadcast 
) const

This method will adjust experience of an existing NFT object

Parameters
moderatormoderator account
uuiduuid of the NFT object
experienceexperience
broadcasttrue if you wish to broadcast the transaction

Definition at line 3518 of file wallet.cpp.

◆ create_game_round()

annotated_signed_transaction scorum::wallet::wallet_api::create_game_round ( const std::string &  owner,
const uuid_type uuid,
const std::string &  verification_key,
const std::string &  seed,
bool  broadcast 
) const

Create a new game round object

Parameters
owneraccount name of the game round owner
uuidUUID of the new game round
verification_keyverification key
seedseed for random generator
broadcasttrue if you wish to broadcast the transaction

Definition at line 3580 of file wallet.cpp.

◆ create_nft()

annotated_signed_transaction scorum::wallet::wallet_api::create_nft ( const std::string &  owner,
const uuid_type uuid,
const std::string &  name,
int32_t  initial_power,
const std::string &  json_meta,
bool  broadcast 
) const

This method will create new NFT object

Parameters
owneraccount creating the new NFT object
uuiduuid of the new NFT object
namename of the new NFT object
initial_powerinitial power of the new NFT object
json_metaJSON metadata associated with the new NFT object
broadcasttrue if you wish to broadcast the transaction

Definition at line 3476 of file wallet.cpp.

◆ get_game_round_by_uuid()

game_round_api_obj scorum::wallet::wallet_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 3624 of file wallet.cpp.

◆ get_nft_by_id()

nft_api_obj scorum::wallet::wallet_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 3556 of file wallet.cpp.

◆ get_nft_by_name()

nft_api_obj scorum::wallet::wallet_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 3562 of file wallet.cpp.

◆ get_nft_by_uuid()

nft_api_obj scorum::wallet::wallet_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 3568 of file wallet.cpp.

◆ lookup_game_round()

std::vector< game_round_api_obj > scorum::wallet::wallet_api::lookup_game_round ( int64_t  from,
uint32_t  limit 
) const

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

Parameters
fromlower bound game round id
limitlimit number of objects in response
Returns
list of game round's

Definition at line 3630 of file wallet.cpp.

◆ lookup_nft()

std::vector< nft_api_obj > scorum::wallet::wallet_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
std::vector<nft_api_obj>

Definition at line 3574 of file wallet.cpp.

◆ update_game_round_result()

annotated_signed_transaction scorum::wallet::wallet_api::update_game_round_result ( const std::string &  owner,
const uuid_type uuid,
const std::string &  proof,
const std::string &  vrf,
int32_t  result,
bool  broadcast 
) const

This method will update game round result

Parameters
owneraccount name of the game round owner
uuidUUID of the game round
proofVRF proof
vrfVRF
resultresult
broadcasttrue if you wish to broadcast the transaction

Definition at line 3601 of file wallet.cpp.

◆ update_nft_meta()

annotated_signed_transaction scorum::wallet::wallet_api::update_nft_meta ( const std::string &  moderator,
const uuid_type uuid,
const std::string &  json_meta,
bool  broadcast 
) const

This method will update json metadata of an existing NFT object

Parameters
moderatormoderator account
uuiduuid of the NFT object
json_metaJSON metadata associated with the NFT
broadcasttrue if you wish to broadcast the transaction

Definition at line 3499 of file wallet.cpp.

◆ update_nft_name()

annotated_signed_transaction scorum::wallet::wallet_api::update_nft_name ( const std::string &  moderator,
const uuid_type uuid,
const std::string &  name,
bool  broadcast 
) const

This method will update name of an existing NFT object

Parameters
moderatormoderator account
uuiduuid of the NFT object
namename associated with the NFT
broadcasttrue if you wish to broadcast the transaction

Definition at line 3537 of file wallet.cpp.