Skip to content
HolidayMan edited this page Aug 31, 2022 · 1 revision

Here it is only one change method: nft_buy_pack

pub fn nft_buy_pack(&mut self, receiver_id: AccountId) -> Token;

How to call with near-cli:

near call <contract_name> nft_buy_pack '{"receiver_id": "<pack_receiver_account_id>"' --accountId <your_account_id> --deposit <deposit>

Deposits avalable (in NEAR):

  • USUAL – 1N
  • RARE – 2N
  • SUPER_RARE – 3N
  • MYTH – 4N
  • EXCLUSIVE – 5N
Clone this wiki locally