func (b *Bitcoind) GetBlock(blockHash string) (block Block, berr Error, err error) {
	verbose := true
	r, err := b.client.call("getblock", []interface{}{blockHash, verbose})

	if err != nil {
		if r.Err != nil {
			rr := r.Err.(map[string]interface{})
			berr = Error{
				Code:    rr["code"].(float64),
				Message: rr["message"].(string),
			}
		}
		return
	}

	if !verbose {
		fmt.Print(string(r.Result))
	} else {
		err = json.Unmarshal(r.Result, &block)
		if err != nil {
			return
		}
	}

	return
}
// GetBlock returns information about the block with the given hash.
// berr is a bitcoin specific error
GetBlock returns information about the block with the given hash.
berr is a bitcoin specific error
// GetBlock returns information about the block with the given hash . // berr is a bitcoin specific error
func (b *Bitcoind) GetBlock(blockHash string) (block Block, berr Error, err error) {
	verbose := true
	r, err := b.client.call("getblock", []interface{}{blockHash, verbose})
	if err != nil {
		if r.Err != nil {
			rr := r.Err.(map[string]interface{})
			berr = Error{
				Code:    rr["code"].(float64),
				Message: rr["message"].(string),
			}
		}
		return
	}
	if !verbose {
		fmt.Print(string(r.Result))
	} else {
		err = json.Unmarshal(r.Result, &block)
		if err != nil {
			return
		}
	}
	return
}
func ( b * Bitcoind ) GetBlock ( blockHash string ) ( block Block , berr Error , err error ) { verbose := true r , err := b . client . call ( " " , [ ] interface { } { blockHash , verbose } ) if err != nil { if r . Err != nil { rr := r . Err . ( map [ string ] interface { } ) berr = Error { Code : rr [ " " ] . ( float64 ) , Message : rr [ " " ] . ( string ) , } } return } if ! verbose { fmt . Print ( string ( r . Result ) ) } else { err = json . Unmarshal ( r . Result , & block ) if err != nil { return } } return }
GetBlock returns information about the block with the given hash.
GetBlock returns information about the block with the given hash .