The height of the block you would like to get information about
Success Response
The wallet will return the direct response from the RPC node.
Error Response
Parameter
Description
type: string
The type of error which has occured
description: string
A description of the error which has occured
data: string
Any raw data associated with the error
Example
Request
neolineN3.getBlock({ blockHeight:190,}).then(result => {console.log('Block information: '+JSON.stringify(result));}).catch((error) => {const {type,description,data} = error;switch(type) {case'NO_PROVIDER':console.log('No provider available.');break;case'RPC_ERROR':console.log('There was an error when broadcasting this transaction to the network.');break;default:// Not an expected error object. Just write the error to the console.console.error(error);break; }});