加密货币钱包提供商
I’ve always been a massive advocate of cryptocurrency. I love the technology, the ease of use, and the freedom that cryptocurrencies bring to the world. Despite my love of crypto, I know that adoption will take a long time and that the state of crypto is not friendly to new adopters.
我一直是加密货币的坚定拥护者。 我热爱技术,易用性以及加密货币带给世界的自由。 尽管我热爱加密,但我知道采用将花费很长时间,而且加密状态对新采用者并不友好。
One scary part of crypto is sending currency to another wallet address. Sure we currently send money via banks with routing and account numbers, but we’ve even been simplifying that with credit cards, Venmo, and Paypal. In short: sending money is always hard and unnerving.
加密的一个令人恐惧的部分是将货币发送到另一个钱包地址。 当然,我们目前可以通过银行通过路由和帐号进行汇款,但是我们甚至通过信用卡,Venmo和Paypal简化了汇款。 简而言之:汇款总是艰辛而令人不安的。
I wanted to figure out if there was a way to feel a bit more secure about sending crypto. I found the answer in cryptocurrency-address-detector, a library that detects a cryptocurrency by wallet address.
我想弄清楚是否有一种方法可以使发送加密更加安全。 我在cryptocurrency-address-detector找到了答案, cryptocurrency-address-detector是一个通过钱包地址检测加密货币的库。
You can install with:
您可以安装:
yarn add cryptocurrency-address-detectorWith the resource available, you can provide an address and get a relevant cryptocurrency back:
利用可用资源,您可以提供一个地址并找回相关的加密货币:
const addressDetect = require('cryptocurrency-address-detector'); addressDetect('0x281055afc982d96fab65b3a49cac8b878184cb16').then(cryptocurrency => { console.log(cryptocurrency); //=> 'ETH' }); addressDetect('1dice8EMZmqKvrGE4Qc9bUFf9PX3xaYDp').then(cryptocurrency => { console.log(cryptocurrency); //=> 'BTC/BCH' }); addressDetect('LQL9pVH1LsMfKwt82Y2wGhNGkrjF8vwUst').then(cryptocurrency => { console.log(cryptocurrency); //=> 'LTC' }); addressDetect('0xsfdlffsjksldfj[IPv6:2001:db8::2]').then(cryptocurrency => { console.log(cryptocurrency); //=> 'Cryptocurrency could not be detected' });This type of library also inherently acts as a validator for addresses for any given cryptocurrency type. If you can’t match the currency type, obviously the address wouldn’t work.
这种类型的库还固有地充当任何给定加密货币类型地址的验证器。 如果您无法匹配货币类型,则地址显然无法使用。
Anything we can do to make crypto easier and more confident for users will improve adoption rates. It’s also great that we have utilities that can make out a currency just from a wallet value.
我们可以做的任何使加密更容易和对用户更有信心的事情,都会提高采用率。 我们拥有可以仅通过钱包值来确定货币的实用工具,也很棒。
翻译自: https://davidwalsh.name/detect-cryptocurrency-by-wallet
加密货币钱包提供商