Socket
Socket
Sign inDemoInstall

web3-eth-iban

Package Overview
Dependencies
35
Maintainers
4
Versions
400
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    web3-eth-iban

This package converts Ethereum addresses to IBAN addresses and vice versa.


Version published
Weekly downloads
527K
increased by2.51%
Maintainers
4
Created
Weekly downloads
 

Package description

What is web3-eth-iban?

The web3-eth-iban npm package is a utility for handling IBAN (International Bank Account Number) addresses in the context of Ethereum. It allows for the conversion between IBAN and Ethereum addresses, validation of IBAN addresses, and other related functionalities.

What are web3-eth-iban's main functionalities?

Convert Ethereum address to IBAN

This feature allows you to convert a standard Ethereum address to an IBAN address. The code sample demonstrates how to use the `toIban` method to achieve this.

const Web3EthIban = require('web3-eth-iban');
const iban = Web3EthIban.toIban('0x1234567890123456789012345678901234567890');
console.log(iban);

Convert IBAN to Ethereum address

This feature allows you to convert an IBAN address back to a standard Ethereum address. The code sample demonstrates how to use the `toAddress` method to achieve this.

const Web3EthIban = require('web3-eth-iban');
const address = Web3EthIban.toAddress('XE7338O073KYGTWWZN0F2WZ0R8PX5ZPPZS');
console.log(address);

Validate IBAN address

This feature allows you to validate whether a given IBAN address is valid. The code sample demonstrates how to use the `isValid` method to achieve this.

const Web3EthIban = require('web3-eth-iban');
const isValid = Web3EthIban.isValid('XE7338O073KYGTWWZN0F2WZ0R8PX5ZPPZS');
console.log(isValid);

Other packages similar to web3-eth-iban

Readme

Source

web3.js

web3.js - IBAN

ES Version Node Version NPM Package Downloads

This is a sub-package of web3.js.

web3-eth-iban This package converts Ethereum addresses to IBAN addresses a vice versa.

Installation

You can install the package either using NPM or using Yarn

Using NPM

npm install web3-eth-iban

Using Yarn

yarn add web3-eth-iban

Getting Started

  • :writing_hand: If you have questions submit an issue or join us on Discord Discord

Prerequisites

Package.json Scripts

ScriptDescription
cleanUses rimraf to remove dist/
buildUses tsc to build package and dependent packages
lintUses eslint to lint package
lint:fixUses eslint to check and fix any warnings
formatUses prettier to format the code
testUses jest to run unit tests
test:integrationUses jest to run tests under /test/integration
test:unitUses jest to run tests under /test/unit

FAQs

Last updated on 18 Oct 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc