Gathering detailed insights and metrics for ant-openunion-blockchain
Gathering detailed insights and metrics for ant-openunion-blockchain
npm install ant-openunion-blockchain
Typescript
Module System
Node Version
NPM Version
62
Supply Chain
89.6
Quality
71
Maintenance
50
Vulnerability
97.9
License
JavaScript (100%)
Verify real, reachable, and deliverable emails with instant MX records, SMTP checks, and disposable email detection.
Total Downloads
869
Last Day
3
Last Week
5
Last Month
8
Last Year
97
3 Stars
7 Commits
1 Forks
1 Watchers
1 Branches
2 Contributors
Updated on Jul 10, 2021
Minified
Minified + Gzipped
Latest Version
1.0.2
Package Id
ant-openunion-blockchain@1.0.2
Unpacked Size
6.59 kB
Size
3.14 kB
File Count
4
NPM Version
6.13.4
Node Version
8.17.0
Cumulative downloads
Total Downloads
NPM module for acquiring response from the Ant Open Union Blockchain Rest API without form authentication hassle
1npm install ant-openunion-blockchain
This package builds upon the fact that a correct pair of accessId and AccessKey are provided. You can generate these Here
How to initialize the module with the correct data.
1const ant = require('ant-openunion-blockchain'); 2 3const options = { 4 AccessId: "AEVMeqalDIMMPKLX", 5 AccessKey: "./access.key" //控制台下载的access.key 文件内需要将 -----BEGIN BEGIN PRIVATE KEY----- 及 -----END BEGIN PRIVATE KEY----- 替换为 -----BEGIN PRIVATE KEY----- 和 -----END PRIVATE KEY----- 6}; 7 8const antblc = new ant(options, (err, result) => { 9 if(err) throw err; 10 console.log(result); 11 // Configured successfully 12});
a token will be returned to you.
1const getToken = antblc.shakeHand((err, result) => { 2 if(err) throw err; 3 console.log(result); 4 //返回数据 5 //{ success: true, 6 // code: '200', 7 // data: '067d1e51-3766-48f9-9d77-426ae6f1e9e3' } 8});
Endpoint https://rest.baas.alipay.com/api/contract/chainCallForBiz
存证
1let options={"orderId":"uniqueOrderid","bizid":"a00e36c5","account":"链上账户名","content":"hello","tenantid":"tenantid","mykmsKeyId":"kmskeyid","method":"DEPOSIT","accessId":"accessId","token":"token got from shakeHand","gas":100000} 2antblc.callApi("api/contract/chainCallForBiz",options, (err, result) => { 3 if(err) throw err; 4 console.log(result) 5 //返回数据 6 //{ success: true, 7 // code: '200', 8 // data: 'bed3d2cf1836853e665304a9f05c485ca577341fb5ea2cd4fc4301d9d0e59336' } 9}); 10
异步调用solidity合约
1let callContractPostData={"orderId":"uniqueOrderid","bizid":"a00e36c5","account":"链上账户名","contractName":"contractName","methodSignature":"testfunc(uint256)","outTypes":"[bool]","requestStr":"[1001]","tenantid":"tenantid","mykmsKeyId":"mykmsKeyId","method":"CALLCONTRACTBIZASYNC","accessId":"accessId","token":"token got from shakeHand","gas":120000} 2antblc.callApi("api/contract/chainCallForBiz",options, (err, result) => { 3 if(err) throw err; 4 console.log(result) 5 //返回数据 6 //{ success: true, 7 // code: '200', 8 // data: '340504146e71fe592218ebaba7a77f476c94df0ce37bb45b468af9e90b6f6f0b' } 9}); 10
其他
1参照在线文档 https://tech.antfin.com/docs/2/146925
Endpoint https://rest.baas.alipay.com/api/contract/chainCall
查询交易
1let options ={"bizid":"a00e36c5","method":"QUERYTRANSACTION","hash":"4697408818a38989dad45f13a7467d0eb16e8d89430fbd3d84cda57fabab614f","accessId":"accessId","token":"token got from shakeHand"} 2antblc.callApi("api/contract/chainCall",options, (err, result) => { 3 if(err) throw err; 4 console.log(result); 5 //返回数据 6 // { success: true, 7 // code: '200', 8 // data: '{"blockNumber":6669833,"transactionDO":{"data":"EstwxwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA2QMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQDQzOTk0NDFjNDM2OGY5ZjM3NWY3Y2NhYTI3MzgxZThjOTg3M2E5Yzc5Y2YwOTIzMTFiZjI1NDBmZTU3ZTAzNzg=","timestamp":1585826930345}}' } 9 }); 10
其他
1参照在线文档 https://tech.antfin.com/docs/2/146925 2
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
Found 0/7 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-03-10
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn MoreLast Day
0%
3
Compared to previous day
Last Week
0%
5
Compared to previous week
Last Month
-69.2%
8
Compared to previous month
Last Year
-58.2%
97
Compared to previous year