Function for add 0x prefix.
String complete0xHex(String hex) { if (hex.startsWith('0x')) { return hex; } return '0x' + hex; }