// GetBlockByNumber makes an RPC call to get block data from the node. Arguments:
//  block: number of the block to get
//  full: true (gets full data for each transaction in the block), false (only the block hash is provided)
//  response: pointer to the blockData received from the node
GetBlockByNumber makes an RPC call to get block data from the node. Arguments:
block: number of the block to get
full: true (gets full data for each transaction in the block), false (only the block hash is provided)
response: pointer to the blockData received from the node
// GetBlockByNumber makes an RPC call to get block data from the node . Arguments : // block : number of the block to get // full : true ( gets full data for each transaction in the block ) false ( only the block hash is provided ) // response : pointer to the blockData received from the node
func (c *EthCli) GetBlockByNumber(block uint64, full bool, response *map[string]interface{}) (err error) {
	blk := strconv.FormatUint(block, 16)
	err = c.Call("eth_getBlockByNumber", []interface{}{("0x" + blk), full}, response)
	if err == nil && *response == nil {
		return ErrNoBlock
	}
	return err
}
func ( c * EthCli ) GetBlockByNumber ( block uint64 , full bool , response * map [ string ] interface { } ) ( err error ) { blk := strconv . FormatUint ( block , 16 ) err = c . Call ( " " , [ ] interface { } { ( " " + blk ) , full } , response ) if err == nil && * response == nil { return ErrNoBlock } return err }
GetBlockByNumber makes an RPC call to get block data from the node.
GetBlockByNumber makes an RPC call to get block data from the node .