func New(host string, port int, user, passwd string, useSSL bool, timeoutParam ...int) (*Bitcoind, error) {
	var timeout int = rpcclientTimeout
	// If the timeout is specified in timeoutParam, allow it.
	if len(timeoutParam) != 0 {
		timeout = timeoutParam[0]
	}

	rpcClient, err := newClient(host, port, user, passwd, useSSL, timeout)
	if err != nil {
		return nil, err
	}
	return &Bitcoind{rpcClient}, nil
}
// New return a new bitcoind
New return a new bitcoind
// New return a new bitcoind
func New(host string, port int, user, passwd string, useSSL bool, timeoutParam ...int) (*Bitcoind, error) {
	var timeout int = rpcclientTimeout
	if len(timeoutParam) != 0 {
		timeout = timeoutParam[0]
	}
	rpcClient, err := newClient(host, port, user, passwd, useSSL, timeout)
	if err != nil {
		return nil, err
	}
	return &Bitcoind{rpcClient}, nil
}
func New ( host string , port int , user , passwd string , useSSL bool , timeoutParam ... int ) ( * Bitcoind , error ) { var timeout int = rpcclientTimeout if len ( timeoutParam ) != 0 { timeout = timeoutParam [ 0 ] } rpcClient , err := newClient ( host , port , user , passwd , useSSL , timeout ) if err != nil { return nil , err } return & Bitcoind { rpcClient } , nil }
New return a new bitcoind
New return a new bitcoind
// If the timeout is specified in timeoutParam, allow it.