{"modulePath":"github.com/Evolution404/simcore","version":"v1.0.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package web3ext\n\npackage web3ext contains geth specific web3.js extensions.\n\n## Constants\n\n```go\nconst AdminJs = `\nweb3._extend({\n\tproperty: 'admin',\n\tmethods: [\n\t\tnew web3._extend.Method({\n\t\t\tname: 'addPeer',\n\t\t\tcall: 'admin_addPeer',\n\t\t\tparams: 1\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'removePeer',\n\t\t\tcall: 'admin_removePeer',\n\t\t\tparams: 1\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'addTrustedPeer',\n\t\t\tcall: 'admin_addTrustedPeer',\n\t\t\tparams: 1\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'removeTrustedPeer',\n\t\t\tcall: 'admin_removeTrustedPeer',\n\t\t\tparams: 1\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'exportChain',\n\t\t\tcall: 'admin_exportChain',\n\t\t\tparams: 3,\n\t\t\tinputFormatter: [null, null, null]\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'importChain',\n\t\t\tcall: 'admin_importChain',\n\t\t\tparams: 1\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'sleepBlocks',\n\t\t\tcall: 'admin_sleepBlocks',\n\t\t\tparams: 2\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'startHTTP',\n\t\t\tcall: 'admin_startHTTP',\n\t\t\tparams: 5,\n\t\t\tinputFormatter: [null, null, null, null, null]\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'stopHTTP',\n\t\t\tcall: 'admin_stopHTTP'\n\t\t}),\n\t\t// This method is deprecated.\n\t\tnew web3._extend.Method({\n\t\t\tname: 'startRPC',\n\t\t\tcall: 'admin_startRPC',\n\t\t\tparams: 5,\n\t\t\tinputFormatter: [null, null, null, null, null]\n\t\t}),\n\t\t// This method is deprecated.\n\t\tnew web3._extend.Method({\n\t\t\tname: 'stopRPC',\n\t\t\tcall: 'admin_stopRPC'\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'startWS',\n\t\t\tcall: 'admin_startWS',\n\t\t\tparams: 4,\n\t\t\tinputFormatter: [null, null, null, null]\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'stopWS',\n\t\t\tcall: 'admin_stopWS'\n\t\t}),\n\t],\n\tproperties: [\n\t\tnew web3._extend.Property({\n\t\t\tname: 'nodeInfo',\n\t\t\tgetter: 'admin_nodeInfo'\n\t\t}),\n\t\tnew web3._extend.Property({\n\t\t\tname: 'peers',\n\t\t\tgetter: 'admin_peers'\n\t\t}),\n\t\tnew web3._extend.Property({\n\t\t\tname: 'datadir',\n\t\t\tgetter: 'admin_datadir'\n\t\t}),\n\t]\n});\n`\n```\n\n```go\nconst CliqueJs = `\nweb3._extend({\n\tproperty: 'clique',\n\tmethods: [\n\t\tnew web3._extend.Method({\n\t\t\tname: 'getSnapshot',\n\t\t\tcall: 'clique_getSnapshot',\n\t\t\tparams: 1,\n\t\t\tinputFormatter: [web3._extend.formatters.inputBlockNumberFormatter]\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'getSnapshotAtHash',\n\t\t\tcall: 'clique_getSnapshotAtHash',\n\t\t\tparams: 1\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'getSigners',\n\t\t\tcall: 'clique_getSigners',\n\t\t\tparams: 1,\n\t\t\tinputFormatter: [web3._extend.formatters.inputBlockNumberFormatter]\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'getSignersAtHash',\n\t\t\tcall: 'clique_getSignersAtHash',\n\t\t\tparams: 1\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'propose',\n\t\t\tcall: 'clique_propose',\n\t\t\tparams: 2\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'discard',\n\t\t\tcall: 'clique_discard',\n\t\t\tparams: 1\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'status',\n\t\t\tcall: 'clique_status',\n\t\t\tparams: 0\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'getSigner',\n\t\t\tcall: 'clique_getSigner',\n\t\t\tparams: 1,\n\t\t\tinputFormatter: [null]\n\t\t}),\n\t],\n\tproperties: [\n\t\tnew web3._extend.Property({\n\t\t\tname: 'proposals',\n\t\t\tgetter: 'clique_proposals'\n\t\t}),\n\t]\n});\n`\n```\n\n```go\nconst DebugJs = `\nweb3._extend({\n\tproperty: 'debug',\n\tmethods: [\n\t\tnew web3._extend.Method({\n\t\t\tname: 'accountRange',\n\t\t\tcall: 'debug_accountRange',\n\t\t\tparams: 6,\n\t\t\tinputFormatter: [web3._extend.formatters.inputDefaultBlockNumberFormatter, null, null, null, null, null],\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'printBlock',\n\t\t\tcall: 'debug_printBlock',\n\t\t\tparams: 1,\n\t\t\toutputFormatter: console.log\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'getHeaderRlp',\n\t\t\tcall: 'debug_getHeaderRlp',\n\t\t\tparams: 1\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'getBlockRlp',\n\t\t\tcall: 'debug_getBlockRlp',\n\t\t\tparams: 1\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'testSignCliqueBlock',\n\t\t\tcall: 'debug_testSignCliqueBlock',\n\t\t\tparams: 2,\n\t\t\tinputFormatter: [web3._extend.formatters.inputAddressFormatter, null],\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'setHead',\n\t\t\tcall: 'debug_setHead',\n\t\t\tparams: 1\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'seedHash',\n\t\t\tcall: 'debug_seedHash',\n\t\t\tparams: 1\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'dumpBlock',\n\t\t\tcall: 'debug_dumpBlock',\n\t\t\tparams: 1,\n\t\t\tinputFormatter: [web3._extend.formatters.inputBlockNumberFormatter]\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'chaindbProperty',\n\t\t\tcall: 'debug_chaindbProperty',\n\t\t\tparams: 1,\n\t\t\toutputFormatter: console.log\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'chaindbCompact',\n\t\t\tcall: 'debug_chaindbCompact',\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'verbosity',\n\t\t\tcall: 'debug_verbosity',\n\t\t\tparams: 1\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'vmodule',\n\t\t\tcall: 'debug_vmodule',\n\t\t\tparams: 1\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'backtraceAt',\n\t\t\tcall: 'debug_backtraceAt',\n\t\t\tparams: 1,\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'stacks',\n\t\t\tcall: 'debug_stacks',\n\t\t\tparams: 1,\n\t\t\tinputFormatter: [null],\n\t\t\toutputFormatter: console.log\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'freeOSMemory',\n\t\t\tcall: 'debug_freeOSMemory',\n\t\t\tparams: 0,\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'setGCPercent',\n\t\t\tcall: 'debug_setGCPercent',\n\t\t\tparams: 1,\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'memStats',\n\t\t\tcall: 'debug_memStats',\n\t\t\tparams: 0,\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'gcStats',\n\t\t\tcall: 'debug_gcStats',\n\t\t\tparams: 0,\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'cpuProfile',\n\t\t\tcall: 'debug_cpuProfile',\n\t\t\tparams: 2\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'startCPUProfile',\n\t\t\tcall: 'debug_startCPUProfile',\n\t\t\tparams: 1\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'stopCPUProfile',\n\t\t\tcall: 'debug_stopCPUProfile',\n\t\t\tparams: 0\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'goTrace',\n\t\t\tcall: 'debug_goTrace',\n\t\t\tparams: 2\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'startGoTrace',\n\t\t\tcall: 'debug_startGoTrace',\n\t\t\tparams: 1\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'stopGoTrace',\n\t\t\tcall: 'debug_stopGoTrace',\n\t\t\tparams: 0\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'blockProfile',\n\t\t\tcall: 'debug_blockProfile',\n\t\t\tparams: 2\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'setBlockProfileRate',\n\t\t\tcall: 'debug_setBlockProfileRate',\n\t\t\tparams: 1\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'writeBlockProfile',\n\t\t\tcall: 'debug_writeBlockProfile',\n\t\t\tparams: 1\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'mutexProfile',\n\t\t\tcall: 'debug_mutexProfile',\n\t\t\tparams: 2\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'setMutexProfileFraction',\n\t\t\tcall: 'debug_setMutexProfileFraction',\n\t\t\tparams: 1\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'writeMutexProfile',\n\t\t\tcall: 'debug_writeMutexProfile',\n\t\t\tparams: 1\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'writeMemProfile',\n\t\t\tcall: 'debug_writeMemProfile',\n\t\t\tparams: 1\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'traceBlock',\n\t\t\tcall: 'debug_traceBlock',\n\t\t\tparams: 2,\n\t\t\tinputFormatter: [null, null]\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'traceBlockFromFile',\n\t\t\tcall: 'debug_traceBlockFromFile',\n\t\t\tparams: 2,\n\t\t\tinputFormatter: [null, null]\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'traceBadBlock',\n\t\t\tcall: 'debug_traceBadBlock',\n\t\t\tparams: 1,\n\t\t\tinputFormatter: [null]\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'standardTraceBadBlockToFile',\n\t\t\tcall: 'debug_standardTraceBadBlockToFile',\n\t\t\tparams: 2,\n\t\t\tinputFormatter: [null, null]\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'intermediateRoots',\n\t\t\tcall: 'debug_intermediateRoots',\n\t\t\tparams: 2,\n\t\t\tinputFormatter: [null, null]\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'standardTraceBlockToFile',\n\t\t\tcall: 'debug_standardTraceBlockToFile',\n\t\t\tparams: 2,\n\t\t\tinputFormatter: [null, null]\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'traceBlockByNumber',\n\t\t\tcall: 'debug_traceBlockByNumber',\n\t\t\tparams: 2,\n\t\t\tinputFormatter: [web3._extend.formatters.inputBlockNumberFormatter, null]\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'traceBlockByHash',\n\t\t\tcall: 'debug_traceBlockByHash',\n\t\t\tparams: 2,\n\t\t\tinputFormatter: [null, null]\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'traceTransaction',\n\t\t\tcall: 'debug_traceTransaction',\n\t\t\tparams: 2,\n\t\t\tinputFormatter: [null, null]\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'traceCall',\n\t\t\tcall: 'debug_traceCall',\n\t\t\tparams: 3,\n\t\t\tinputFormatter: [null, null, null]\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'preimage',\n\t\t\tcall: 'debug_preimage',\n\t\t\tparams: 1,\n\t\t\tinputFormatter: [null]\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'getBadBlocks',\n\t\t\tcall: 'debug_getBadBlocks',\n\t\t\tparams: 0,\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'storageRangeAt',\n\t\t\tcall: 'debug_storageRangeAt',\n\t\t\tparams: 5,\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'getModifiedAccountsByNumber',\n\t\t\tcall: 'debug_getModifiedAccountsByNumber',\n\t\t\tparams: 2,\n\t\t\tinputFormatter: [null, null],\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'getModifiedAccountsByHash',\n\t\t\tcall: 'debug_getModifiedAccountsByHash',\n\t\t\tparams: 2,\n\t\t\tinputFormatter:[null, null],\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'freezeClient',\n\t\t\tcall: 'debug_freezeClient',\n\t\t\tparams: 1,\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'getAccessibleState',\n\t\t\tcall: 'debug_getAccessibleState',\n\t\t\tparams: 2,\n\t\t\tinputFormatter:[web3._extend.formatters.inputBlockNumberFormatter, web3._extend.formatters.inputBlockNumberFormatter],\n\t\t}),\n\t],\n\tproperties: []\n});\n`\n```\n\n```go\nconst EthJs = `\nweb3._extend({\n\tproperty: 'eth',\n\tmethods: [\n\t\tnew web3._extend.Method({\n\t\t\tname: 'chainId',\n\t\t\tcall: 'eth_chainId',\n\t\t\tparams: 0\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'sign',\n\t\t\tcall: 'eth_sign',\n\t\t\tparams: 2,\n\t\t\tinputFormatter: [web3._extend.formatters.inputAddressFormatter, null]\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'resend',\n\t\t\tcall: 'eth_resend',\n\t\t\tparams: 3,\n\t\t\tinputFormatter: [web3._extend.formatters.inputTransactionFormatter, web3._extend.utils.fromDecimal, web3._extend.utils.fromDecimal]\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'signTransaction',\n\t\t\tcall: 'eth_signTransaction',\n\t\t\tparams: 1,\n\t\t\tinputFormatter: [web3._extend.formatters.inputTransactionFormatter]\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'estimateGas',\n\t\t\tcall: 'eth_estimateGas',\n\t\t\tparams: 2,\n\t\t\tinputFormatter: [web3._extend.formatters.inputCallFormatter, web3._extend.formatters.inputBlockNumberFormatter],\n\t\t\toutputFormatter: web3._extend.utils.toDecimal\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'submitTransaction',\n\t\t\tcall: 'eth_submitTransaction',\n\t\t\tparams: 1,\n\t\t\tinputFormatter: [web3._extend.formatters.inputTransactionFormatter]\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'fillTransaction',\n\t\t\tcall: 'eth_fillTransaction',\n\t\t\tparams: 1,\n\t\t\tinputFormatter: [web3._extend.formatters.inputTransactionFormatter]\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'getHeaderByNumber',\n\t\t\tcall: 'eth_getHeaderByNumber',\n\t\t\tparams: 1,\n\t\t\tinputFormatter: [web3._extend.formatters.inputBlockNumberFormatter]\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'getHeaderByHash',\n\t\t\tcall: 'eth_getHeaderByHash',\n\t\t\tparams: 1\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'getBlockByNumber',\n\t\t\tcall: 'eth_getBlockByNumber',\n\t\t\tparams: 2,\n\t\t\tinputFormatter: [web3._extend.formatters.inputBlockNumberFormatter, function (val) { return !!val; }]\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'getBlockByHash',\n\t\t\tcall: 'eth_getBlockByHash',\n\t\t\tparams: 2,\n\t\t\tinputFormatter: [null, function (val) { return !!val; }]\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'getRawTransaction',\n\t\t\tcall: 'eth_getRawTransactionByHash',\n\t\t\tparams: 1\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'getRawTransactionFromBlock',\n\t\t\tcall: function(args) {\n\t\t\t\treturn (web3._extend.utils.isString(args[0]) \u0026\u0026 args[0].indexOf('0x') === 0) ? 'eth_getRawTransactionByBlockHashAndIndex' : 'eth_getRawTransactionByBlockNumberAndIndex';\n\t\t\t},\n\t\t\tparams: 2,\n\t\t\tinputFormatter: [web3._extend.formatters.inputBlockNumberFormatter, web3._extend.utils.toHex]\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'getProof',\n\t\t\tcall: 'eth_getProof',\n\t\t\tparams: 3,\n\t\t\tinputFormatter: [web3._extend.formatters.inputAddressFormatter, null, web3._extend.formatters.inputBlockNumberFormatter]\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'createAccessList',\n\t\t\tcall: 'eth_createAccessList',\n\t\t\tparams: 2,\n\t\t\tinputFormatter: [null, web3._extend.formatters.inputBlockNumberFormatter],\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'feeHistory',\n\t\t\tcall: 'eth_feeHistory',\n\t\t\tparams: 3,\n\t\t\tinputFormatter: [null, web3._extend.formatters.inputBlockNumberFormatter, null]\n\t\t}),\n\t],\n\tproperties: [\n\t\tnew web3._extend.Property({\n\t\t\tname: 'pendingTransactions',\n\t\t\tgetter: 'eth_pendingTransactions',\n\t\t\toutputFormatter: function(txs) {\n\t\t\t\tvar formatted = [];\n\t\t\t\tfor (var i = 0; i \u003c txs.length; i++) {\n\t\t\t\t\tformatted.push(web3._extend.formatters.outputTransactionFormatter(txs[i]));\n\t\t\t\t\tformatted[i].blockHash = null;\n\t\t\t\t}\n\t\t\t\treturn formatted;\n\t\t\t}\n\t\t}),\n\t\tnew web3._extend.Property({\n\t\t\tname: 'maxPriorityFeePerGas',\n\t\t\tgetter: 'eth_maxPriorityFeePerGas',\n\t\t\toutputFormatter: web3._extend.utils.toBigNumber\n\t\t}),\n\t]\n});\n`\n```\n\n```go\nconst EthashJs = `\nweb3._extend({\n\tproperty: 'ethash',\n\tmethods: [\n\t\tnew web3._extend.Method({\n\t\t\tname: 'getWork',\n\t\t\tcall: 'ethash_getWork',\n\t\t\tparams: 0\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'getHashrate',\n\t\t\tcall: 'ethash_getHashrate',\n\t\t\tparams: 0\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'submitWork',\n\t\t\tcall: 'ethash_submitWork',\n\t\t\tparams: 3,\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'submitHashrate',\n\t\t\tcall: 'ethash_submitHashrate',\n\t\t\tparams: 2,\n\t\t}),\n\t]\n});\n`\n```\n\n```go\nconst LESJs = `\nweb3._extend({\n\tproperty: 'les',\n\tmethods:\n\t[\n\t\tnew web3._extend.Method({\n\t\t\tname: 'getCheckpoint',\n\t\t\tcall: 'les_getCheckpoint',\n\t\t\tparams: 1\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'clientInfo',\n\t\t\tcall: 'les_clientInfo',\n\t\t\tparams: 1\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'priorityClientInfo',\n\t\t\tcall: 'les_priorityClientInfo',\n\t\t\tparams: 3\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'setClientParams',\n\t\t\tcall: 'les_setClientParams',\n\t\t\tparams: 2\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'setDefaultParams',\n\t\t\tcall: 'les_setDefaultParams',\n\t\t\tparams: 1\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'addBalance',\n\t\t\tcall: 'les_addBalance',\n\t\t\tparams: 2\n\t\t}),\n\t],\n\tproperties:\n\t[\n\t\tnew web3._extend.Property({\n\t\t\tname: 'latestCheckpoint',\n\t\t\tgetter: 'les_latestCheckpoint'\n\t\t}),\n\t\tnew web3._extend.Property({\n\t\t\tname: 'checkpointContractAddress',\n\t\t\tgetter: 'les_getCheckpointContractAddress'\n\t\t}),\n\t\tnew web3._extend.Property({\n\t\t\tname: 'serverInfo',\n\t\t\tgetter: 'les_serverInfo'\n\t\t}),\n\t]\n});\n`\n```\n\n```go\nconst MinerJs = `\nweb3._extend({\n\tproperty: 'miner',\n\tmethods: [\n\t\tnew web3._extend.Method({\n\t\t\tname: 'start',\n\t\t\tcall: 'miner_start',\n\t\t\tparams: 1,\n\t\t\tinputFormatter: [null]\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'stop',\n\t\t\tcall: 'miner_stop'\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'setEtherbase',\n\t\t\tcall: 'miner_setEtherbase',\n\t\t\tparams: 1,\n\t\t\tinputFormatter: [web3._extend.formatters.inputAddressFormatter]\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'setExtra',\n\t\t\tcall: 'miner_setExtra',\n\t\t\tparams: 1\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'setGasPrice',\n\t\t\tcall: 'miner_setGasPrice',\n\t\t\tparams: 1,\n\t\t\tinputFormatter: [web3._extend.utils.fromDecimal]\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'setGasLimit',\n\t\t\tcall: 'miner_setGasLimit',\n\t\t\tparams: 1,\n\t\t\tinputFormatter: [web3._extend.utils.fromDecimal]\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'setRecommitInterval',\n\t\t\tcall: 'miner_setRecommitInterval',\n\t\t\tparams: 1,\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'getHashrate',\n\t\t\tcall: 'miner_getHashrate'\n\t\t}),\n\t],\n\tproperties: []\n});\n`\n```\n\n```go\nconst NetJs = `\nweb3._extend({\n\tproperty: 'net',\n\tmethods: [],\n\tproperties: [\n\t\tnew web3._extend.Property({\n\t\t\tname: 'version',\n\t\t\tgetter: 'net_version'\n\t\t}),\n\t]\n});\n`\n```\n\n```go\nconst PersonalJs = `\nweb3._extend({\n\tproperty: 'personal',\n\tmethods: [\n\t\tnew web3._extend.Method({\n\t\t\tname: 'importRawKey',\n\t\t\tcall: 'personal_importRawKey',\n\t\t\tparams: 2\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'sign',\n\t\t\tcall: 'personal_sign',\n\t\t\tparams: 3,\n\t\t\tinputFormatter: [null, web3._extend.formatters.inputAddressFormatter, null]\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'ecRecover',\n\t\t\tcall: 'personal_ecRecover',\n\t\t\tparams: 2\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'openWallet',\n\t\t\tcall: 'personal_openWallet',\n\t\t\tparams: 2\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'deriveAccount',\n\t\t\tcall: 'personal_deriveAccount',\n\t\t\tparams: 3\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'signTransaction',\n\t\t\tcall: 'personal_signTransaction',\n\t\t\tparams: 2,\n\t\t\tinputFormatter: [web3._extend.formatters.inputTransactionFormatter, null]\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'unpair',\n\t\t\tcall: 'personal_unpair',\n\t\t\tparams: 2\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'initializeWallet',\n\t\t\tcall: 'personal_initializeWallet',\n\t\t\tparams: 1\n\t\t})\n\t],\n\tproperties: [\n\t\tnew web3._extend.Property({\n\t\t\tname: 'listWallets',\n\t\t\tgetter: 'personal_listWallets'\n\t\t}),\n\t]\n})\n`\n```\n\n```go\nconst RpcJs = `\nweb3._extend({\n\tproperty: 'rpc',\n\tmethods: [],\n\tproperties: [\n\t\tnew web3._extend.Property({\n\t\t\tname: 'modules',\n\t\t\tgetter: 'rpc_modules'\n\t\t}),\n\t]\n});\n`\n```\n\n```go\nconst TxpoolJs = `\nweb3._extend({\n\tproperty: 'txpool',\n\tmethods: [],\n\tproperties:\n\t[\n\t\tnew web3._extend.Property({\n\t\t\tname: 'content',\n\t\t\tgetter: 'txpool_content'\n\t\t}),\n\t\tnew web3._extend.Property({\n\t\t\tname: 'inspect',\n\t\t\tgetter: 'txpool_inspect'\n\t\t}),\n\t\tnew web3._extend.Property({\n\t\t\tname: 'status',\n\t\t\tgetter: 'txpool_status',\n\t\t\toutputFormatter: function(status) {\n\t\t\t\tstatus.pending = web3._extend.utils.toDecimal(status.pending);\n\t\t\t\tstatus.queued = web3._extend.utils.toDecimal(status.queued);\n\t\t\t\treturn status;\n\t\t\t}\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'contentFrom',\n\t\t\tcall: 'txpool_contentFrom',\n\t\t\tparams: 1,\n\t\t}),\n\t]\n});\n`\n```\n\n```go\nconst VfluxJs = `\nweb3._extend({\n\tproperty: 'vflux',\n\tmethods:\n\t[\n\t\tnew web3._extend.Method({\n\t\t\tname: 'distribution',\n\t\t\tcall: 'vflux_distribution',\n\t\t\tparams: 2\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'timeout',\n\t\t\tcall: 'vflux_timeout',\n\t\t\tparams: 2\n\t\t}),\n\t\tnew web3._extend.Method({\n\t\t\tname: 'value',\n\t\t\tcall: 'vflux_value',\n\t\t\tparams: 2\n\t\t}),\n\t],\n\tproperties:\n\t[\n\t\tnew web3._extend.Property({\n\t\t\tname: 'requestStats',\n\t\t\tgetter: 'vflux_requestStats'\n\t\t}),\n\t]\n});\n`\n```\n\n## Variables\n\n```go\nvar Modules = map[string]string{\n\t\"admin\":    AdminJs,\n\t\"clique\":   CliqueJs,\n\t\"ethash\":   EthashJs,\n\t\"debug\":    DebugJs,\n\t\"eth\":      EthJs,\n\t\"miner\":    MinerJs,\n\t\"net\":      NetJs,\n\t\"personal\": PersonalJs,\n\t\"rpc\":      RpcJs,\n\t\"txpool\":   TxpoolJs,\n\t\"les\":      LESJs,\n\t\"vflux\":    VfluxJs,\n}\n```\n\n","path":"github.com/Evolution404/simcore/internal/web3ext","name":"web3ext","synopsis":"package web3ext contains geth specific web3.js extensions.","isRedistributable":true}
