Patent attributes
Implementations of the present application provide a blockchain-based resource allocation method. A target transaction is obtained, by a first node device in a blockchain network, from a distributed database of the blockchain network. The blockchain network comprises a target user device of a target user and the first node device. The target transaction comprises service behavior data of the target user, and the service behavior data of the target user is generated by the target user device by using a target service. A smart contract corresponding to an allocation of a resource is invoked comprising: executing a resource allocation logic that is stored in the smart contract and that is related to the service behavior data of the target user, and performing the allocation of the resource to the target user.