azure - Trouble connecting to nodes using truffle for Azure Blockchain Service
问题描述
Unable to connect to transaction nodes for Azure Blockchain Service
I am trying to connect to transaction nodes, I've defined the connection strings in "truffle-config.js" as described in the example (https://docs.microsoft.com/en-us/azure/blockchain/service/send-transaction).
var alpha = "https://alpha-test.blockchain.azure.com:3200/***********";
var myAccount = "0x1B21e60D66a0598F95096c214Fe84c960f80fF89";
var myPassword = "*******";
alpha: {
provider: new Web3.providers.HttpProvider(alpha),
network_id: "*",
gas: 0,
gasPrice: 0
}
whenever I execute the truffle console command to connect to alpha node, I am returned the following error:
$ truffle console --network alpha
Could not connect to your Ethereum client.
Please check that your Ethereum client:
- is running
- is accepting RPC connections (i.e., "--rpc" option is used in geth)
- is accessible over the network
- is properly configured in your Truffle configuration file (truffle-config.js)
whereas I am able to connect to both the defaultnode and beta node. I've tried hitting the rpc endpoints using browser and they seem to work. But I am unable to do so via truffle. Please help me out.
解决方案
推荐阅读
- xslt - XSLT 1.0 删除前导和尾随空格
- amazon-redshift - 如何在 Redshift 的结果中保留列别名中的大写和小写字母
- text - 如何将带圆圈的数字转换为数字?(①至1)
- c++ - 使用 valgrind 在 C++ 中向量分配中的内存泄漏
- php - 从 MySQL 拉取
- java - 当捕获到 `OutOfMemoryException` 时,何时会触发 `GC`?
- javascript - 使用 JavaScript 从嵌套 JSON 对象中的值获取上层键?
- jquery - jQuery:动态附加
- php - 如何在 php 中创建会话数组
- amazon-web-services - 如何知道 sam/cloudformation 堆栈 lambda 正在执行什么