function createChecksumFromAddress(address) {
  const addressHash = createKeccakHash('keccak256')
    .update(address.toLowerCase())
    .digest('hex')

  const addressArray = address.split('')
  const hashArray = addressHash.split('')

  const checksumArray = addressArray.map((character, index) => {
    return parseInt(`0x${hashArray[index]}`) >= 8 ? character.toUpperCase() : character.toLowerCase()
  })

  return checksumArray.join('')
}
/**
 * Create checksum for Ethereum address
 *
 * @property {String} address - Ethereum address
 *
 * @returns {String} - Returns a string containing the address encoded with checksum
 */
Create checksum for Ethereum address
@property {String} address - Ethereum address

@returns {String} - Returns a string containing the address encoded with checksum
Create checksum for Ethereum address @property { String } address - Ethereum address @returns { String } - Returns a string containing the address encoded with checksum
function createChecksumFromAddress(address) {
  const addressHash = createKeccakHash('keccak256')
    .update(address.toLowerCase())
    .digest('hex')
  const addressArray = address.split('')
  const hashArray = addressHash.split('')
  const checksumArray = addressArray.map((character, index) => {
    return parseInt(`0x${hashArray[index]}`) >= 8 ? character.toUpperCase() : character.toLowerCase()
  })
  return checksumArray.join('')
}
function createChecksumFromAddress ( address ) { const addressHash = createKeccakHash ( 'keccak256' ) . update ( address . toLowerCase ( ) ) . digest ( 'hex' ) const addressArray = address . split ( '' ) const hashArray = addressHash . split ( '' ) const checksumArray = addressArray . map ( ( character , index ) => { return parseInt ( ` ${ hashArray [ index ] } ` ) >= 8 ? character . toUpperCase ( ) : character . toLowerCase ( ) } ) return checksumArray . join ( '' ) }
Create checksum for Ethereum address
 @property {String} address - Ethereum address
Create checksum for Ethereum address @property { String } address - Ethereum address