Skip to content

A simple utility to truncate ethereum addresses to a more readable format

License

Notifications You must be signed in to change notification settings

gpxl-dev/truncate-eth-address

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

truncate-eth-address

A very small and simple utility to truncate ethereum addresses to a more readable format. No dependencies.

Before: 0x7358B726830A2E222f9b139E90483A37142bcBE5 After: 0x7358…cBE5

Usage:

import truncateEthAddress from 'truncate-eth-address'

const walletAddress = `0x7358B726830A2E222f9b139E90483A37142bcBE5`
console.log(`Your address is: ${truncateEthAddress(walletAddress)}`)

About

A simple utility to truncate ethereum addresses to a more readable format

Resources

License

Stars

Watchers

Forks

Packages

No packages published