debug_js.go 1.59 KB
Newer Older
Bas van Kervel's avatar
Bas van Kervel committed
1 2 3
package api

const Debug_JS = `
4
web3._extend({
Bas van Kervel's avatar
Bas van Kervel committed
5 6 7
	property: 'debug',
	methods:
	[
8
		new web3._extend.Method({
Bas van Kervel's avatar
Bas van Kervel committed
9 10 11
			name: 'printBlock',
			call: 'debug_printBlock',
			params: 1,
12 13
			inputFormatter: [web3._extend.formatters.formatInputInt],
			outputFormatter: web3._extend.formatters.formatOutputString
Bas van Kervel's avatar
Bas van Kervel committed
14
		}),
15
		new web3._extend.Method({
Bas van Kervel's avatar
Bas van Kervel committed
16 17 18
			name: 'getBlockRlp',
			call: 'debug_getBlockRlp',
			params: 1,
19 20
			inputFormatter: [web3._extend.formatters.formatInputInt],
			outputFormatter: web3._extend.formatters.formatOutputString
Bas van Kervel's avatar
Bas van Kervel committed
21
		}),
22
		new web3._extend.Method({
Bas van Kervel's avatar
Bas van Kervel committed
23 24 25
			name: 'setHead',
			call: 'debug_setHead',
			params: 1,
26 27
			inputFormatter: [web3._extend.formatters.formatInputInt],
			outputFormatter: web3._extend.formatters.formatOutputBool
Bas van Kervel's avatar
Bas van Kervel committed
28
		}),
29
		new web3._extend.Method({
Bas van Kervel's avatar
Bas van Kervel committed
30 31 32
			name: 'processBlock',
			call: 'debug_processBlock',
			params: 1,
33
			inputFormatter: [web3._extend.formatters.formatInputInt],
Bas van Kervel's avatar
Bas van Kervel committed
34 35
			outputFormatter: function(obj) { return obj; }
		}),
36
		new web3._extend.Method({
Bas van Kervel's avatar
Bas van Kervel committed
37 38 39
			name: 'seedHash',
			call: 'debug_seedHash',
			params: 1,
40 41
			inputFormatter: [web3._extend.formatters.formatInputInt],
			outputFormatter: web3._extend.formatters.formatOutputString
42 43 44 45 46 47 48
		})		,
		new web3._extend.Method({
			name: 'dumpBlock',
			call: 'debug_dumpBlock',
			params: 1,
			inputFormatter: [web3._extend.formatters.formatInputInt],
			outputFormatter: function(obj) { return obj; }
49 50 51 52 53 54 55
		}),
		new web3._extend.Method({
			name: 'metrics',
			call: 'debug_metrics',
			params: 1,
			inputFormatter: [web3._extend.formatters.formatInputBool],
			outputFormatter: function(obj) { return obj; }
Bas van Kervel's avatar
Bas van Kervel committed
56 57 58 59 60 61 62
		})
	],
	properties:
	[
	]
});
`