US 12,462,255 B2
Blockchain-based data processing method and apparatus, device, storage medium, and program product
Zimin Chen, Shenzhen (CN); Hui Zhang, Shenzhen (CN); and Hu Lan, Shenzhen (CN)
Assigned to TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED, Shenzhen (CN)
Filed by Tencent Technology (Shenzhen) Company Limited, Shenzhen (CN)
Filed on Jun. 13, 2023, as Appl. No. 18/209,175.
Application 18/209,175 is a continuation of application No. PCT/CN2022/130419, filed on Nov. 7, 2022.
Claims priority of application No. 202210028536.9 (CN), filed on Jan. 11, 2022.
Prior Publication US 2023/0325833 A1, Oct. 12, 2023
Int. Cl. G06Q 20/40 (2012.01); G06Q 20/02 (2012.01)
CPC G06Q 20/4014 (2013.01) [G06Q 20/02 (2013.01); G06Q 20/405 (2013.01)] 17 Claims
OG exemplary drawing
 
1. A blockchain-based data processing method performed by a computer device, the method comprising:
determining a token identification in response to a resource reception request of a receiving object of a virtual resource, the resource reception request comprising an identification of an issuing object of the virtual resource, an identification of the receiving object and a resource reception number, wherein the issuing object is a developer of a game, the receiving object is a player of the game, the virtual resource is an equipment of the game developed by the developer, the resource reception number indicates a number of equipments of the game currently owned by the player of the game;
determining M virtual resources having the token identification and issued by the issuing object in a smart contract of a blockchain associated with the game, further including:
verifying a reception permission of the receiving object for the token identification;
determining that the reception permission is a permission allowing receiving, the permission allowing receiving characterizing that the M virtual resources having the token identification are not held by the receiving object;
comparing the resource reception number with a first number threshold value based on the determination that the reception permission is a permission allowing receiving;
determining that the resource reception number is less than the first number threshold value; and
calling a general callback function in the smart contract of the blockchain based on the determination that the resource reception number is less than the first number threshold value, and determining, using the general callback function in the smart contract of the blockchain, the M virtual resources having the token identification and issued by the issuing object;
determining a token attribute corresponding to the token identification based on a resource attribute of the M virtual resources, M being a positive integer;
determining a resource identification of a target virtual resource transferred from the issuing object to the receiving object based on the token attribute of the token identification;
calling the general callback function in the smart contract of the blockchain and generating, using the general callback function in the smart contract of the blockchain, a resource reception transaction for the target virtual resource transferred from the issuing object to the receiving object;
broadcasting the resource reception transaction to a consensus network of the blockchain, wherein the consensus network generates a block for the resource reception transaction performs uplink processing on the block; and
transferring the target virtual resource held by the issuing object to the receiving object after the block is successfully uplinked by the consensus network.