Blockchain-based API service call evidence storage and settlement method
By using blockchain technology for evidence storage and settlement in API service calls, the problems of incomplete quality assessment and insufficient data security in API service call settlement methods are solved, realizing a safe and reliable transaction environment and simplifying the process.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HAINAN RES INST OF ZHEJIANG UNIV
- Filing Date
- 2023-08-01
- Publication Date
- 2026-06-30
AI Technical Summary
Existing API service call settlement methods lack a comprehensive consideration of the actual operational quality of the service, rely on third-party intermediaries leading to unfair compensation mechanisms, rely on centralized databases for data security which are easily tampered with, and have complex transaction processes that are difficult to trace.
The trading platform is built on blockchain technology. It uses the blockchain network to store API service subscription and call records, and uses smart contracts to freeze, transfer and clear funds, thereby achieving comprehensive monitoring of API service quality and a safe and reliable trading environment.
It provides a comprehensive, secure, and reliable basis for evaluating and settling API service quality, reducing transaction disputes, protecting the interests of both parties, simplifying transaction processes, and ensuring that data is tamper-proof and traceable.
Smart Images

Figure CN116883170B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to a blockchain-based method for storing and settling API service calls. Background Technology
[0002] With the advancement and development of cloud computing and cloud service technologies, a large number of API services are deployed in cloud resources for easy access by service users. Currently, traditional API service transaction settlements, taking Alibaba Cloud, Huawei Cloud, and AWS as examples, only guarantee service availability in their SLAs (Service Level Agreements), without considering metrics such as latency and throughput. Service transaction settlements are conducted through third-party settlement platforms. For example, Chinese Patent Publication No. CN110210850A discloses an online transaction settlement method and system. The method includes: receiving and publishing a goods online contract submitted by a first trading member; receiving a bidding and transportation contract submitted by a second trading member for the goods online contract, and initiating a freeze request to a financial institution to freeze the payment amount in the first trading member's payment account; receiving a goods delivery completion notification submitted by the second trading member, and initiating an unfreezing and payment request to the financial institution to unfreeze the payment amount in the first trading member's payment account. The financial institution unfreezes the payment amount in the payment account of the first transaction member and processes the payment; and Chinese Patent Publication No. CN110866753A discloses a control method, device, electronic device, and storage medium for third-party settlement to improve the efficiency of third-party settlement. The method includes: a third-party settlement node responding to a settlement request and sending the settlement request to the corresponding transaction participant nodes; the third-party settlement node receiving acceptance opinions from each transaction participant node, wherein the acceptance opinions indicate the processing result of the transaction participant node on the settlement request; the third-party settlement node determining transaction consensus information based on the received acceptance opinions and executing third-party settlement based on the transaction consensus information, wherein the transaction consensus information indicates whether each transaction participant node has reached a complete consensus on the settlement request.
[0003] For services that fail to meet the SLA (Service Level Agreement), compensation is provided by issuing platform vouchers afterward. This results in strong platform dependence and reliance; related data is stored in the payment company's centralized database, making it difficult to ensure data security, reliability, and transparency. The main problems are as follows:
[0004] (1) At present, the settlement methods for API service calls mostly rely on the service provider's unilateral monitoring indicators, lacking a comprehensive consideration of the actual operation quality of the service, which leads to an incomplete evaluation of the API service quality.
[0005] (2) Transaction settlement for API services often relies on third-party intermediaries, and the compensation mechanism is often tied to the supplier. The compensation method is difficult to effectively protect the rights and interests of service users, and the transaction settlement process is complicated, which is not conducive to the free trade of both parties.
[0006] (3) At present, data in API service calls, transaction settlement and other stages are mostly stored in centralized databases. The security of the data depends on the third-party payment platform. Transaction data involves the interests of multiple parties and is at risk of being tampered with. When a transaction dispute occurs, it is difficult to conduct a safe and reliable traceability query, and the data security is difficult to guarantee. Summary of the Invention
[0007] The purpose of this invention is to provide a blockchain-based method for API service call notarization and settlement. This method optimizes the transaction process, comprehensively monitors the actual service call, reduces transaction disputes, and provides a reliable basis for API service quality assessment and settlement.
[0008] This invention provides the following technical solution:
[0009] A blockchain-based API service call notarization and settlement method, comprising the following steps:
[0010] Step 1: Build a blockchain network. Service users select API services that meet their business needs, generate API service subscription records, and store them on the blockchain through the service user nodes.
[0011] Step 2: Once the API service subscription record is successfully stored on the blockchain, a fixed amount of assets belonging to the service user is frozen based on the API service subscription record. This generates an asset freeze record for the corresponding API service subscription record and stores it on the blockchain.
[0012] Step 3: Obtain the metric data called in the API service subscription, generate the corresponding service call records and store them in the blockchain;
[0013] Step 4: Summarize the service call records on the blockchain, generate service call settlement records, and store them on the blockchain for evidence;
[0014] Step 5: Once the service call settlement record is uploaded to the blockchain for notarization, the frozen funds of the service user are transferred to the service provider based on the service call settlement record.
[0015] In step 1, the API service subscription record mainly includes data such as subscription ID, service user ID, service provider ID, API service ID, API service single call price, and API service subscription count. The subscription ID is obtained by hashing the service user ID, service provider ID, and API service ID using the SHA-256 hash algorithm. The service user node refers to the blockchain node used by the API service user for invocation. Furthermore, the blockchain network also includes the service provider node, which is used by the API service provider for invocation.
[0016] In step 1, the method for building a blockchain network is as follows: based on the API service call scenario, blockchain organizations are divided for service users and service providers, and a blockchain network is built.
[0017] The blockchain network includes service user organizations and service provider organizations. The service user organization contains multiple service user nodes and service user accounts, with each service user account corresponding to a service user. Service users can invoke the corresponding service user nodes through their accounts. The service provider organization contains multiple service provider nodes and service provider accounts, with each service provider account corresponding to a service provider. Service providers can invoke the corresponding service provider nodes through their accounts.
[0018] In this process, the service user and the service provider complete the blockchain account registration by providing relevant user information.
[0019] The service user interacts with the blockchain by calling the corresponding service user node, including: account top-up, API service subscription, and call record settlement. The service user tops up account funds by calling the fund management contract, and the functions of calling the fund management contract include account fund top-up and account fund withdrawal. The service provider interacts with the blockchain by calling the corresponding service provider node, including: publishing services, setting service prices, and account withdrawal.
[0020] In step 2, a fixed amount of assets belonging to the service user is frozen by triggering an asset freeze contract: the asset freeze contract is a division and freezing of the service user's funds based on a fixed amount of assets; the fixed amount of assets refers to the amount required for this API service subscription; the asset freeze record includes data such as service user ID, service provider ID, subscription ID, and fixed amount of assets.
[0021] The asset freeze contract is mainly based on the fixed amount of assets to freeze the funds of the service user, which facilitates the settlement of API service calls in the future and can effectively prevent the service user from defaulting on payments.
[0022] The calculation method for fixed-amount assets is as follows: it is calculated by multiplying the price per subscription API service by the number of subscriptions.
[0023] In step 3, the service call record is stored in the blockchain through the service call record on-chain contract. The service call record on-chain contract refers to the smart contract that records the service call record on the blockchain for evidence storage.
[0024] In step 3, reliable hardware device monitoring technology is used to monitor and obtain the indicator data of API service subscription calls. The indicator data is relevant data used to evaluate the quality of API services, including request processing speed, response time, throughput, etc., as well as API error rate, maximum concurrency, stability, and other indicators calculated based on the above indicator data. The service call record includes call record ID, user ID, provider ID, API service ID, call time, whether the call was successful, call indicator parameters, etc., wherein the call indicator parameters are the indicator data.
[0025] The hardware device monitoring technology refers to the technology for monitoring API services deployed in the cloud or on servers, specifically including technologies such as gateway plugin capture or traffic analysis.
[0026] In step 4, based on the service call record summary conditions, the service call summary contract is periodically triggered to summarize the service call records on the blockchain.
[0027] The service call record summary conditions refer to the conditions that trigger the call summary contract, such as summarizing the service call records on the chain daily or weekly.
[0028] The service call summary contract refers to a contract that summarizes the service call records over a period of time and generates the service call settlement record.
[0029] The service call summary contract only summarizes service call records of successful API service calls. Service call records resulting from slow responses or call failures due to API service quality issues are not summarized.
[0030] The service call settlement record mainly includes data such as settlement ID, service user ID, service provider ID, subscription ID, API service ID, start time, end time, and settlement amount.
[0031] In step 5, by triggering the service transaction record transfer contract, the frozen funds of the service user are transferred to the service provider based on the service call settlement record.
[0032] The service transaction transfer contract refers to a contract that completes the fund transfer between the service user and the service provider based on the service call settlement record.
[0033] The settlement method provided by this invention further includes: when the service user completes its business requirements or no longer uses the API service subscription, the account fund settlement contract is triggered based on the registered account information and through the service user node to complete the fund settlement or fund refund for this API service subscription.
[0034] The account funds clearing contract refers to the process, based on the service call records and the service call summary records, to complete the fund transfer from the service user who has successfully called the API service to the service provider, and to unfreeze the frozen remaining fixed assets and return them to the service user. The frozen remaining fixed assets refer to the funds that have not been spent due to API service call failures or substandard service quality.
[0035] The settlement method provided by this invention further includes: updating the quality evaluation of the corresponding API service based on the indicator data in the service call records in the local API service transaction settlement.
[0036] The present invention also provides a blockchain-based API service call transaction settlement device, including a memory and one or more processors. The memory stores executable code, and when the one or more processors execute the executable code, they are used to implement the above-mentioned blockchain-based API service call transaction settlement method.
[0037] The present invention also provides a computer-readable storage medium having a program stored thereon, which, when executed by a processor, is used to implement the above-described blockchain-based API service call transaction settlement method.
[0038] Compared with the prior art, the present invention has the following superior effects:
[0039] (1) Addressing the issues of overly simplistic API service performance evaluation metrics and limited data sources, this invention, based on blockchain technology, provides a secure and reliable testing environment for API service transactions and invocations. By comprehensively monitoring API service invocation metrics and storing the data on the blockchain, it achieves a comprehensive assessment of API service quality while ensuring the security, reliability, and immutability of the evaluation data, thus providing service users with an objective and impartial reference standard.
[0040] (2) Addressing the issues of low service quality, low security, and unfavorable compensation for service users in API service transaction settlement processes, this invention designs an account fund management method that includes functions such as fund freezing and fund return. Based on a blockchain network, it provides a secure, reliable, open, and transparent trading environment for both parties. Through smart contract technology, it realizes automated trading of API services, fully protecting the interests of both parties, eliminating centralized settlement institutions, simplifying the transaction process, and improving transaction settlement efficiency.
[0041] (3) Addressing the issue that API service data security relies on third-party payment platforms, making it difficult to prevent data tampering and ensure reliable traceability, this invention, based on the secure, trustworthy, immutable, and traceable characteristics of blockchain, designs a blockchain-based API service data storage and traceability management method to ensure the immutability and traceability of API service transaction settlement data.
[0042] In summary, the blockchain-based API service call notarization and settlement method provided by this invention establishes a secure and reliable transaction environment for API service calls through blockchain, enabling trusted transactions to be completed by parties who are strangers to each other, thus optimizing the transaction process. Simultaneously, it comprehensively monitors the actual service call and stores the evidence on the blockchain, ensuring the immutability and traceability of service call records, reducing transaction disputes. Furthermore, it provides a reliable basis for API service quality assessment and settlement, effectively protecting the interests of service users. Attached Figure Description
[0043] Figure 1 Flowchart for calling the evidence storage and settlement method for blockchain-based API services. Detailed Implementation
[0044] To better understand the technical solution of this application, the embodiments of this application will be described in detail below with reference to the accompanying drawings.
[0045] It should be understood that the described embodiments are merely some, not all, of the embodiments in this application. All other embodiments obtained by those skilled in the art based on the embodiments in this application without inventive effort are within the scope of protection of this application.
[0046] The terminology used in the embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. The singular forms “a,” “the,” and “the” used in the embodiments of this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.
[0047] like Figure 1As shown, the blockchain-based API service call notarization and settlement method provided by this invention establishes a secure and reliable transaction environment for API service calls using blockchain technology. This allows for trusted transactions between parties who are strangers to each other, optimizing the transaction process. Simultaneously, it comprehensively monitors the actual service call process and records the call details on the blockchain for notarization. This ensures the immutability and traceability of service call records, reducing transaction disputes. Furthermore, it provides a reliable basis for API service quality assessment and settlement, effectively protecting the interests of service users.
[0048] The method provided in this embodiment specifically includes the following steps:
[0049] S1. Based on API service call scenarios, and taking into account the different users, namely, the service users and service providers, blockchain organizations are divided to build a blockchain-based service transaction platform.
[0050] The established blockchain network is divided into service user organizations and service provider organizations. Service user organizations consist of multiple service user nodes. Service users can invoke these nodes through registered service user accounts to interact with the blockchain, performing operations such as account top-ups, service subscriptions, and settlement of call records. Similarly, service provider organizations consist of multiple service provider nodes. Service providers can also invoke these nodes through registered accounts to interact with the blockchain, performing operations such as service publishing, setting service prices, and account withdrawals.
[0051] S2. Service users complete account registration on the platform page. If they need to purchase related services, they need to deposit funds into their registered account, and they can also withdraw funds at any time.
[0052] For example, service user A fills in relevant user information through the platform and recharges 100 yuan. Based on the account type, the platform will select a service user node to call the smart contract, completing the on-chain notarization of account registration data and account recharge data, ensuring the data's immutability and traceability. After service user A finishes using the relevant service and pays the corresponding fee, they can initiate a withdrawal of their account balance. The platform will then refund the balance to the account and simultaneously update the on-chain account data by calling the smart contract through the service user node.
[0053] Specifically, service provider A calls the funds management contract to top up and withdraw funds from the account.
[0054] Service providers interact with the blockchain by calling the corresponding service provider node, including publishing services, setting service prices, and withdrawing funds from accounts.
[0055] S3. Service users select suitable API services from the platform's existing service marketplace based on their own business needs and choose to subscribe.
[0056] For example, service user A selects a weather API service published by service provider B and initiates a subscription. The platform will generate a weather API service subscription record based on service user A's identity information and the details of the weather API service, and then call the smart contract through the service user node to store the weather API service subscription record on the blockchain.
[0057] The weather API service call records mainly include data such as subscription ID, service user ID, service provider ID, API service ID, API service single call price, and API service subscription count. Among them, the subscription ID is obtained by hashing the service user ID, service provider ID, and API service ID using the SHA-256 hash algorithm.
[0058] For example: Weather API service subscription record: {Subscription ID: 055c285fada98806e70c1b33b1608b1abc424b5634461055c62084005aace927, Service User ID: A_id, Service Provider ID: B_id, API Service ID: Weather ID, API Service Single Call Price: ¥1, API Service Subscription Count: 10}
[0059] S4. After the API service subscription record is stored on the blockchain, the asset freeze contract is triggered. Based on the API service subscription record, the fixed amount of assets of the service user is frozen, the corresponding asset freeze record of the API service subscription record is generated, and stored on the blockchain.
[0060] The asset freeze contract is mainly based on a fixed amount of assets to freeze the funds of service users, which facilitates the settlement of API service calls later and can effectively prevent service users from defaulting on payments.
[0061] The fixed asset refers to the amount required for this API service subscription, which is calculated by multiplying the price of the API service subscription per subscription by the number of subscriptions.
[0062] The asset freeze record mainly includes data such as service user ID, service provider ID, subscription ID, and fixed assets.
[0063] For example, after the weather API service call record is stored on the blockchain, an asset freeze contract is triggered, freezing the corresponding amount of assets subscribed to the weather API service by service user A, and generating a corresponding frozen asset record for blockchain storage. Frozen asset record: {Service User ID: A_id, Service Provider ID: B_id, Subscription ID: 055c285fada98806e70c1b33b1608b1abc424b5634461055c62084005aace927, Fixed Asset: ¥10}.
[0064] S5. Based on trusted hardware device monitoring technology, monitor and obtain call indicator data of subscribed API services, generate corresponding service call records, and store the service call records on the blockchain through the service user node calling the service call record on-chain contract.
[0065] Hardware device monitoring technology refers to the technologies used to monitor API services deployed in the cloud or on servers, including technologies such as gateway plugin capture or traffic analysis.
[0066] Metrics data refers to relevant data used to evaluate the quality of API services, specifically including request processing speed, response time, throughput, and API error rate, maximum concurrency, stability, and other metrics calculated based on the above metrics.
[0067] Service call records mainly include call record ID, user ID, provider ID, API service ID, call time, whether the call was successful, and call metric parameters. Among them, the call metric parameters are the metric data.
[0068] A service call record on-chain contract refers to a smart contract that records service calls on the blockchain for evidence storage.
[0069] For example, after service user A subscribes to the weather API service published by service provider B, and then calls the weather API service, the monitoring technology will detect the specific call data and generate a corresponding service call record, such as: {Call Record ID: 6e70c1b33b1608b1abc4, User ID: A_id, Provider ID: B_id, API Service ID: Weather id, Call Time: 2023.6.30-12:30:30, Call Successful: Yes, Call Metric Parameters: ******}. This record is then sent to the corresponding service user node, which calls the service call record on-chain contract to store the data on the blockchain.
[0070] S6. Based on the service call record summary conditions, the service call summary contract is triggered periodically to summarize the service call records on the chain, generate service call settlement records, and store them on the chain.
[0071] Service call record summary conditions refer to the conditions that trigger the call summary contract, such as summarizing on-chain service call records daily or weekly.
[0072] A service call summary contract is a contract that summarizes service call records over a period of time to generate a service call settlement record. Specifically, the service call summary contract only summarizes successful API service call records; service call records resulting from slow responses or call failures due to API service quality issues are not summarized.
[0073] Service call settlement records mainly include data such as settlement ID, service user ID, service provider ID, subscription ID, API service ID, start time, end time, and settlement amount.
[0074] For example: If service user A successfully calls the weather API service 3 times in a certain day, and the service call record summary condition is to summarize once a day, then the service call summary contract is triggered, generating a service call settlement record: {Settlement ID: settlement_id, Service User ID: A_id, Service Provider ID: B_id, Subscription ID: 055c285fada98806e70c1b33b1608b1abc424b5634461055c62084005aace927, API Service ID: Weather id, Start Time: 2023.6.30-12:30:30, End Time: 2023.07.01-12:30:30, Settlement Amount: ¥3}.
[0075] S7. As the service call settlement record is uploaded to the blockchain, the service transaction transfer contract is triggered. Based on the service call settlement record, the frozen funds of the service user are transferred to the service provider.
[0076] A service transaction transfer contract refers to a contract that completes the transfer of funds between a service user and a service provider based on service call settlement records.
[0077] For example, when the service call settlement record of the weather API service corresponding to service user A is uploaded to the blockchain, the service transaction transfer contract is triggered, and 3 RMB is transferred from the 10 RMB frozen when service user A subscribed to the weather API service to the account of service provider B.
[0078] S8. When a service user completes its business requirements or no longer uses the API service it subscribed to, the account fund settlement contract is triggered through the service user node based on the account information to complete the fund settlement or fund refund for the subscribed API service.
[0079] An account funds clearing contract refers to the process of transferring funds from the service user to the service provider for those who have successfully called the API service, based on service call records and service call summary records, and unfreezing the remaining frozen fixed amount of assets and returning them to the service user.
[0080] The frozen remaining fixed assets refer to the funds in the fixed assets that have not been spent due to API service call failures or substandard service quality.
[0081] For example: After successfully calling the weather API service 3 times, service user A no longer needs the service. In this case, the service user node can initiate a fund settlement application. The service user node will trigger the account fund settlement contract based on the application information, unfreeze the remaining ¥7 and return it to service user A.
[0082] S9. The system administrator updates the quality evaluation of the corresponding API service based on the indicator data in the service call records in the local API service transaction settlement, so as to help service users select better API services.
[0083] This invention also provides a blockchain-based API service call transaction settlement device, including one or more processors. Executable code is stored in a memory. When the processor executes the executable code, it implements the blockchain-based API service call transaction settlement method described in the above embodiments. Taking software implementation as an example, as a logical device, it is formed by the processor of any data processing-capable device reading the corresponding computer program instructions from non-volatile memory into memory for execution. From a hardware perspective, in addition to the processor, memory, network interface, and non-volatile memory, the data processing-capable device in the embodiments typically includes other hardware depending on its actual functions, which will not be elaborated further.
[0084] This invention also provides a computer-readable storage medium storing a program that, when executed by a processor, implements the blockchain-based API service call transaction settlement method described in the above embodiments. The computer-readable storage medium can be an internal storage unit of any data processing device as described in any of the foregoing embodiments, such as a hard disk or memory. The computer-readable storage medium can also be any data processing device, such as a plug-in hard disk, smart media card (SMC), SD card, flash memory card (Flash8Card), etc., equipped on the device. Furthermore, the computer-readable storage medium can include both internal storage units of any data processing device and external storage devices. The computer-readable storage medium is used to store the computer program and other programs and data required by the data processing device, and can also be used to temporarily store data that has been output or will be output.
[0085] The above description is merely an embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principle of the present invention should be included within the scope of the claims of the present invention.
Claims
1. A blockchain-based API service call notarization and settlement method, characterized in that, The method includes the following steps: Step 1: Build a blockchain network. Service users select API services that meet their business needs, generate API service subscription records, and store them on the blockchain through the service user nodes. Step 2: Once the API service subscription record is successfully stored on the blockchain, the fixed amount of assets of the service user is frozen based on the API service subscription record, an asset freeze record corresponding to the API service subscription record is generated, and the asset freeze record is stored on the blockchain through the service user node. Step 3: Obtain the metric data called in the API service subscription, generate the corresponding service call records, and store them in the blockchain through the service user nodes on the blockchain; Step 4: Summarize the service call records on the blockchain, generate service call settlement records, and store them on the blockchain through the service user nodes; Step 5: Once the service call settlement record is uploaded to the blockchain for notarization, the frozen funds of the service user are transferred to the service provider based on the service call settlement record. In step 2, a fixed amount of assets belonging to the service user is frozen by triggering an asset freeze contract: the asset freeze contract is a division and freezing of the service user's funds based on a fixed amount of assets; the fixed amount of assets refers to the amount required for this API service subscription; the asset freeze record includes the service user ID, the service provider ID, the subscription ID, and the fixed amount of assets. In step 3, the metrics data of API service subscriptions are monitored and obtained based on trusted hardware device monitoring technology. The metrics data are relevant data used to evaluate the quality of API services, including request processing speed, response time, throughput, and API error rate, maximum concurrency, and stability calculated based on the above metrics data. The service call record includes call record ID, user ID, provider ID, API service ID, call time, whether the call was successful, and call metric parameters, wherein the call metric parameters are the metrics data. In step 4, based on the service call record summary conditions, a service call summary contract is periodically triggered to summarize the service call records on the blockchain. The service call record summary conditions refer to the conditions that trigger the summary contract. The service call summary contract refers to the contract that summarizes the service call records over a period of time and generates the service call settlement record. The service call summary contract only summarizes service call records of successful API service calls. The service call settlement record includes settlement ID, service user ID, service provider ID, subscription ID, API service ID, start time, end time, and settlement amount.
2. The blockchain-based API service call notarization and settlement method according to claim 1, characterized in that, In step 1, the method for building a blockchain network is as follows: based on the API service call scenario, blockchain organizations are divided for service users and service providers, and a blockchain network is built. The blockchain network includes service user organizations and service provider organizations. The service user organization contains multiple service user nodes and service user accounts, with each service user account corresponding to a service user. Service users can invoke the corresponding service user nodes through their accounts. The service provider organization contains multiple service provider nodes and service provider accounts, with each service provider account corresponding to a service provider. Service providers can invoke the corresponding service provider nodes through their accounts.
3. The blockchain-based API service call notarization and settlement method according to claim 2, characterized in that, The service user interacts with the blockchain by calling the corresponding service user node, including: account top-up, API service subscription, and call record settlement. The service user tops up account funds by calling the fund management contract, and the functions of calling the fund management contract include account fund top-up and account fund withdrawal. The service provider interacts with the blockchain by calling the corresponding service provider node, including: publishing services, setting service prices, and account withdrawal.
4. The blockchain-based API service call notarization and settlement method according to claim 1, characterized in that, In step 3, the service call record is stored in the blockchain through the service call record on-chain contract. The service call record on-chain contract refers to the smart contract that records the service call record on the blockchain for evidence storage.
5. The blockchain-based API service call notarization and settlement method according to claim 1, characterized in that, The settlement method also includes: When the service user completes its business requirements or no longer uses the API service subscription, the account fund settlement contract is triggered based on the registered account information and through the service user node to complete the fund settlement or fund refund for this API service subscription. Update the quality evaluation of the corresponding API service based on the indicator data in the service call records of the local API service transaction settlement.
6. A blockchain-based API service call transaction settlement device, comprising a memory and one or more processors, wherein the memory stores executable code, and the one or more processors execute the executable code to implement the blockchain-based API service call evidence storage and settlement method according to any one of claims 1-5.
7. A computer-readable storage medium having a program stored thereon, which, when executed by a processor, is used to implement the blockchain-based API service call evidence storage and settlement method according to any one of claims 1-5.