Ethereum Blockies Base64
A tiny library for generating blocky identicons as base64 encoded PNGs.
See a live demo of it in action
Install
# NPM
npm install --save ethereum-blockies-base64
# Yarn
yarn add ethereum-blockies-base64
Use
Vanilla JS
; const img = ;imgsrc = ; documentbody;
React
;; Component { return <img src=/> }
Note: In a real setting, we recommend saving to state and re-making the blockie on prop change for better re-render performance.