Method of processing non-fungible token
The present disclosure provides methods for generating and processing a token of a user by an electronic device. In some embodiments, the method includes receiving, from a user terminal, a message requesting to register the token. The token has been generated based on payment information of the user and a smart contract that uses the payment information. The method further includes registering the token, based on obtaining, from a blockchain network, a successful verification of the token. The method further includes updating a registration status of the registered token, based on the payment information. The method further includes determining whether to provide the user a reward for the registered token.
1 . A method of processing-a token an NFT (Non-Fungible Token) of a user by an electronic device, the method comprising:
receiving, from a user terminal by the electronic device, a message requesting to register the NFT, wherein the NFT has been generated based on payment information of the user by a token generation procedure that causes one or more nodes of a blockchain network to execute a smart contract, and is transmitted to a wallet address of the electronic device;
identifying, by the electronic device, a block in which the NFT is recorded by searching the blockchain network;
acquiring, by the electronic device, payment information of the user from the identified block;
identifying, by the electronic device, a user account of the user corresponding to the payment information by comparing information on a payer included in the payment information with information on the user account; verifying, by the electronic device, a technical validity of the NFT by executing the smart contract to inquire a location in which the NFT is recorded and determining whether the location corresponds to a predefined block in a blockchain;
transmitting, by the electronic device, the verified NFT to a staking address within the blockchain network for a predetermined time period, the staking address being indicated by the smart contract, based on obtaining, from the blockchain network, a successful verification of the NFT;
generating, by the electronic device, information on a purchase trend based on a number of registered NFTs by updating a registration status of NFTs transmitted to the staking address in response to the NFT being transmitted to the staking address;
determining, by the electronic device, a reward corresponding to the registered NFT based on the updated registration status of the NFTs; and
providing, by the electronic device, the determined reward to the identified user account.
2 . The method of claim 1 , further comprising:
transmitting, to the user terminal, registration status information of a plurality of NFTs that comprises the registered NFT and the payment information, causing the user terminal to display, in a dashboard form, a plurality of regions separated for each type of business or each payment franchise comprised by the registration status information, and to display, in at least one region of the plurality of regions, the payment information based on the type of business or the payment franchise indicated by the payment information.
3 . The method of claim 2 , wherein:
the registration status information further indicates the user account and an image corresponding to each of the plurality of NFTs, and
the transmitting, to the user terminal, of the registration status information further causes the user terminal to display the user account and the image with the payment information in the at least one region.
4 . The method of claim 1 , further comprising generating reward information corresponding to the determined reward for the registered NFT.
5 . The method of claim 4 , wherein the generating of the reward information comprises:
when a reward criterion defined in an event for the transmitting the NFT to the staking address has been satisfied, determining whether the event corresponds to the NFT; and
generating the reward information based on determining that the event corresponds to the NFT.
6 . The method of claim 5 , wherein the reward criterion is based on at least one of a type of business, a payment franchise, a payment time point, and a payment account.
7 . The method of claim 5 , wherein the generating of the reward information corresponding to the reward for the user comprises:
generating the reward information corresponding to the reward for the user based on a number of users that have registered tokens NFTs corresponding to the event.
8 . The method of claim 5 , wherein the reward is a virtual asset or a coupon corresponding to the event.
9 . The method of claim 5 , wherein the generating of the reward information corresponding to the reward for the user comprises:
generating the reward information corresponding to the reward for the user based on a registration order of registered NFTs satisfying the reward criterion.