code: func NewTransaction(name string) (*Transaction, error) {
  	params := transactionRequest{Name: name}
  	req := NewJSON2Request("new-transaction", APICounter(), params)
  
  	resp, err := walletRequest(req)
  	if err != nil {
  		return nil, err
  	}
  	if resp.Error != nil {
  		return nil, resp.Error
  	}
  
  	tx := new(Transaction)
  	if err := json.Unmarshal(resp.JSONResult(), tx); err != nil {
  		return nil, err
  	}
  	return tx, nil
  }
docs: // NewTransaction creates a new temporary Transaction in the wallet