{"repo":"vtm9/adequate_crypto_address","free":true,"listed":false,"github":"https://github.com/vtm9/adequate_crypto_address","clone":"git clone https://github.com/vtm9/adequate_crypto_address.git","description":"A Ruby Library for dealing with validation cryptocurrency addresses","language":"Ruby","stars":23,"topics":["ruby","bitcoin","bitcoincash","ethereum","ripple","zcash","dash","ltc"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"AdequateCryptoAddress =============== [![Gem Version][gem-version-svg]][gem-version-link] [![Build Status][build-status-svg]][build-status-link] [![Code Climate][codeclimate-status-svg]][codeclimate-status-link] [![Coverage Status][coverage-status-svg]][coverage-status-link] [![Downloads][downloads-svg]][downloads-link] [![Docs][docs-rubydoc-svg]][docs-rubydoc-link] [![License][license-svg]][license-link] Simple wallet address validator and normalizer for cryptocurrencies addresses in Ruby. Inspired by ognus/wallet-address-validator. Installation Add this line to your application's Gemfile: Or install it yourself as: Main API .valid? (address, currency [, type = :prod]) Parameters address - Wallet address to validate. currency - Currency name string or symbol in any case, :bitcoin or 'BTC' or :btc or 'BitCoin' type - Optional. You can enforce validation with specific type. Not all currencies support types. Returns true if the address (string) is a valid wallet address for the crypto currency specified, see below for supported currencies. Supported crypto currencies Bitcoin/BTC, 'bitcoin' or 'BTC' types: :segwit v0 keyhash :segwit v0 scripthash :hash160 :p2sh BitcoinCash/BCH, 'bitcoincash' or 'BCH' types: :p2sh :p2pkh :p2pkhtest :p2shtest Dash, 'dash' or 'DASH' types: :prod :test Zcash/ZEC, 'zcash' or 'ZEC' types: :prod :test Ethereum/ETH, 'ethereum' or 'ETH' Ripple/XRP, 'ripple' or 'XRP' Toncoin, 'TON' Monero/XRM, 'monero' Usage Validation Normalization Not all currencies sup","default_branch":null,"files":null,"tree":[],"storefront":"/r/vtm9","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/vtm9/adequate_crypto_address/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}