どこかに nodejs SDK があるかもしれませんが、たぶん api exprorer のサンプルが python だけっぽいけどすぐに node.js も追加されそうな気がしますが、ちょっと生でたたきはじめてみました。
Tutorial Step 1. Create your service / 4b. Check the result with API
$ npm install axios
node.js
constcrypto=require('crypto');constaxios=require('axios').default;constendpoint='https://test-api.blockchain.line.me';constapikey='apikey'constsecret='secret';constmethod='GET';axios.defaults.baseURL=endpoint;asyncfunctioncallAPI(url){constnonce=crypto.randomBytes(16).toString('base64').slice(4,12);consttimestamp=Date.now();constsignature=crypto.createHmac('sha512',secret).update(`${nonce}${timestamp}${method}${url}`).digest('base64');varheaders={'service-api-key':apikey,'nonce':nonce,'timestamp':timestamp,'signature':signature};varoptions={method:method,url:`${endpoint}${url}`,headers:headers};try{letresult=awaitaxios.request(options);console.log(result.data.responseData)}catch(err){console.error(err.response.status,err.response.status.text);}}(async()=>{// 4b-a) Retrieve service wallet transaction history// $ curl -v -X GET https://test-api.blockchain.line.me/v1/wallets/{walletAddress}/transactions?type=token/MsgMint \// -H 'service-api-key: {API Key}' \// -H 'nonce: {nonce}' \// -H 'timestamp: {timestamp}' \// -H 'signature: {signature}'constwalletAddress='walletAddress';leturl=`/v1/wallets/${walletAddress}/transactions?type=token/MsgMint`awaitcallAPI(url);// b) Retrieve a transaction with txHash// curl -v -X GET https://test-api.blockchain.line.me/v1/transactions/{transaction_hash} \// -H 'service-api-key: {API Key}' \// -H 'nonce: {nonce}' \// -H 'timestamp: {timestamp}' \// -H 'signature: {signature}'consttransactionHash='transactionHash';// tx hashurl=`/v1/transactions/${transactionHash}`;awaitcallAPI(url);})();